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 whose innerHTML is assigned html.
  • SSR (renderToHtml): Writes html directly into the output stream.

Usually created using the DSL sugar Raw.

Inheritance

Constructors

RawHtmlNode(String html)
Creates a raw HTML passthrough descriptor with html.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
html String
The raw HTML string to insert.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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