schema-components - v3.7.0
    Preparing search index...

    Function serialize

    • Serialise an HTML node to a string.

      • Text content is automatically escaped
      • Void elements are self-closing
      • Boolean attributes render as just the name (disabled, checked)
      • false/undefined attribute values are omitted

      Parameters

      • node: HtmlNode

        An HtmlElement, HtmlText, or string to serialise

      Returns string

      HTML string