Search code examples
htmlxmlresx

How Can I put span tag inside RESX file?


I have an xml file named "Strings.resx" for translation. I want to make some text highlighted I tried to put span something like this:

<span style="background: red;color: #000000;">VERDERGAAT</span>

and it doesn't work.


Solution

  • you can not put "<" and ">" inside resx files

    so you should simply do it like this:

    &lt;span style='background: red;color: #000000;'&gt;VERDERGAAT&lt;/span&gt;
    

    this should be ok now.