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.
Constructors
- SafeHtmlDirective(HtmlElement _element)
- Creates a SafeHtmlDirective instance.
Properties
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