OptionalencodeEncodes text content. Use this method to encode HTML/XML entities.
Text to encode.
OptionalisIf true then ASCII alpha characters are case-insensitive in tag names.
OptionalisIf true then self-closing tags are recognized, otherwise they are treated as start tags.
OptionalvoidThe 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).
Options of createSerializer.