Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I put span tag inside RESX file?

Tags:

html

xml

resx

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.

like image 285
Amr Elnashar Avatar asked Jul 15 '10 20:07

Amr Elnashar


1 Answers

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.

like image 115
guy schaller Avatar answered Oct 12 '22 09:10

guy schaller