Summary
Gets or sets a value indicating whether the inner text should be treated as HTML (no encoding).
- Namespace
- Localization
.AspNetCore .TagHelpers - Containing Type
- Generic
Localize Tag Helper
Syntax
[HtmlAttributeName(LOCALIZE_HTML)]
public virtual bool IsHtml { get; set; }
Examples
<ul>
<li localize-html="true">
<a href="~/home">Home</a>
</li>
</ul>
Remarks
This defaults to false.
Attributes
Type | Description |
---|---|
HtmlAttributeName |
Value
Type | Description |
---|---|
bool | true if the inner text is HTML; otherwise, false . |