Element wrapper of .innerHTML for data binding with HTML elements.
Localize text with HTML elements using app-localize-behavior.
locales.json
{
"text": "<span>Settings</a>"
}HTML
<s-html html="[[localize('text')]]"></s-html>Using element content styled with CSS.
locales.json
{
"text": "<span class=\"red\">Settings</span>"
}CSS
.red {
color: red;
}HTML
<s-html html="[[localize('text')]]"></s-html>Using element content styled with CSS within an element.
locales.json
{
"text": "<span class=\"red\">Settings</span>"
}CSS
.red {
color: red;
}HTML
<s-html html="[[localize('text')]]"><custom-element></custom-element></s-html>Unescape escaped HTML elements.
locales.json
{
"text": "polymer <br>"
}HTML
<s-html unescape html="[[localize('text')]]"></s-html>bower i uxland/s-html -S
Apache 2.0