TagSoup - v3.1.0
    Preparing search index...

    Interface SerializerOptions

    Options of createSerializer.

    interface SerializerOptions {
        encodeText?: (text: string) => string;
        isCaseInsensitiveTags?: boolean;
        isSelfClosingTagsSupported?: boolean;
        voidTags?: string[];
    }
    Index

    Properties

    encodeText?: (text: string) => string

    Encodes text content. Use this method to encode HTML/XML entities.

    Type Declaration

      • (text: string): string
      • Parameters

        • text: string

          Text to encode.

        Returns string

    isCaseInsensitiveTags?: boolean

    If true then ASCII alpha characters are case-insensitive in tag names.

    false
    
    isSelfClosingTagsSupported?: boolean

    If true then self-closing tags are recognized, otherwise they are treated as start tags.

    false
    
    voidTags?: string[]

    The list of tags that can't have any contents (since there's no end tag, no content can be put between the start tag and the end tag).

    ['link', 'meta']