XML vs. HTML tags;
- Tuesday Jul 14,2009 10:01 AM
- By wmensah
- In Thoughts
Supposing you have a string in your xml file that contains html tags for whatever reason (perhaps you want the content of the string to be displayed in html format at some point), be sure to replace all ‘<’ with ‘<’ and all ‘>’ with ‘>’ .
So basically, a string such as “<b>Hello World!</b><br>Now what?” would have to be changed to “<b>Hello World!</b><br>Now what?”
Ugly? You bet!! but it’s your best bet! To avoid getting dizzy, you might want to select the string and perform a find & replace on this kind of stuff. Otherwise you might spent hours trying to figure out why your xml script is not working.