getHtmlFromNotus static method
dynamic
getHtmlFromNotus(
- NotusDocument notusDocument
Implementation
static getHtmlFromNotus(NotusDocument notusDocument) {
String html = '';
for (int i = 0; i < notusDocument.root.children.length; i++) {
List<NotusNode> notusDocLine =
_getJsonLine(notusDocument.root.children.elementAt(i));
if (notusDocument.root.children.elementAt(i).runtimeType == LineNode) {
html = html + _decodeNotusLine(notusDocLine);
} else if (notusDocument.root.children.elementAt(i).runtimeType ==
BlockNode) {
html = html + _decodeNotusBlock(notusDocLine);
}
}
return html.replaceAll('\n', '');
}