appendHtml2 method

void appendHtml2 (Element el, String htmlText)

Append htmlText to el. Currently we trust all html tags inside htmlText. TODO: Instead of using "trusted" for each element, use a NodeTreeSanitizer with a NodeValidator which for example allows each element, but only certain attributes in the text, e.g. .

Implementation

static void appendHtml2(Element el, String htmlText) {
  el.appendHtml(htmlText, treeSanitizer: NodeTreeSanitizer.trusted);
}