buildHTML method
String
buildHTML({
- bool withIndent = false,
- String parentIndent = '',
- String indent = ' ',
- bool disableIndent = false,
- bool xhtml = false,
- bool resolveDSX = false,
- bool buildTemplates = false,
- DOMNode? parentNode,
- DOMNode? previousNode,
- DOMContext? domContext,
override
Generates a HTML from this node tree.
withIndent
If true
will generate a indented HTML.
Implementation
@override
String buildHTML(
{bool withIndent = false,
String parentIndent = '',
String indent = ' ',
bool disableIndent = false,
bool xhtml = false,
bool resolveDSX = false,
bool buildTemplates = false,
DOMNode? parentNode,
DOMNode? previousNode,
DOMContext? domContext}) {
var nbsp = xhtml ? ' ' : ' ';
return text.replaceAll('\xa0', nbsp);
}