GenericLocalizeTagHelper.

IsHtml Property

Summary

Gets or sets a value indicating whether the inner text should be treated as HTML (no encoding).

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.