DomUtils.DomSerializerOptions
interface DomSerializerOptions {
decodeEntities?: boolean;
emptyAttrs?: boolean;
selfClosingTags?: boolean;
xmlMode?: boolean | "foreign";
}§Properties
§
decodeEntities?: boolean
[src]Encode characters that are either reserved in HTML or XML, or are outside of the ASCII range.
§
emptyAttrs?: boolean
[src]Print an empty attribute's value.
@example
With <code>emptyAttrs: false</code>: <code><input checked></code>
@example
With <code>emptyAttrs: true</code>: <code><input checked=""></code>