SafeHtmlDirective class

Directive that renders trusted HTML content without sanitization.

Use this directive when you need to render HTML that you fully trust (e.g., from a markdown renderer or a CMS) and want to bypass the built-in sanitization.

Implemented types
Annotations

Constructors

SafeHtmlDirective(HtmlElement _element)
Creates a SafeHtmlDirective instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeHtml String?
The trusted HTML content to render.
getter/setter pair

Methods

ngOnInit() → void
Executed after the first change detection run for a directive.
override
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