class

HtmlWriter

@Js
class HtmlWriter : Obj

HTML writer for markdown rendering

constructors make

methods line

write a newline character if the last character written wasn't a newline

w

raw

Write the raw string

tag

Write a tag with the given name ("foo" - opening tag, "/foo" - closing tag) with the given attributes

text

Write the escaped text

line This line()

write a newline character if the last character written wasn't a newline

make new make(OutStream out)

raw This raw(Str s)

Write the raw string

tag This tag(Str name, [Str:Str?]? attrs, Bool empty)

Write a tag with the given name ("foo" - opening tag, "/foo" - closing tag) with the given attributes. If empty is true an empty tag is written (e.g. <img />)

text This text(Str text)

Write the escaped text

w This w(Str s)

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST