RawHtmlNode class
Trusted raw HTML passthrough — rendered verbatim by both backends.
Security Warning
Never pass unescaped user-supplied input to RawHtmlNode or Raw.
This node bypasses HTML escaping completely and directly sets .innerHTML
in the browser, making the application vulnerable to XSS attacks if fed
untrusted data.
DOM Mounting and SSR
- Browser (
mount): Mounts as a<span>element host whoseinnerHTMLis assigned html. - SSR (
renderToHtml): Writes html directly into the output stream.
Usually created using the DSL sugar Raw.
Constructors
- RawHtmlNode(String html)
-
Creates a raw HTML passthrough descriptor with
html.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited