type

HtmlContext

src @Js
class HtmlContext : Obj

Context for rendering nodes to HTML

fields

methods

Slot Details

encodeUrl

src Str encodeUrl(Str url)

escapeHtml

src Bool escapeHtml()

extendAttrs

src Str:Str? extendAttrs(Node node, Str tagName, Str:Str? attrs := [:])

omitSingleParagraphP

src Bool omitSingleParagraphP()

percentEncodeUrls

src Bool percentEncodeUrls()

render

src Void render(Node node)

sanitizeUrls

src Bool sanitizeUrls()

softbreak

src Str softbreak()

urlSanitizer

src UrlSanitizer urlSanitizer()

writer

src HtmlWriter writer { private set }