Skip to content

Custom tagName property

Compare
Choose a tag to compare
@pret-a-porter pret-a-porter released this 09 Apr 14:22
· 328 commits to master since this release

Now you can provide property tagName in Text component.
It is very useful for increase SEO points. For example, in you translations you have some html like:

<li>one</li>
<li>two</li>

When text component render html it creates <span> wrapper by default. Now you can change to any html tag. Example with list:

<EOLocale.Text html id="SOME_KEY" tagName="ul" />