Sign up (with export icon)

BasicHtmlWriter

Api-class icon class

Basic HTML writer. It uses the native innerHTML property for basic conversion from a document fragment to an HTML string.

Methods

  • Chevron-right icon

    getHtml( fragment ) → string

    Returns an HTML string created from the document fragment.

    Parameters

    fragment : DocumentFragment

    Returns

    string