PDA

View Full Version : Pango escape '<' and '>'



tom66
February 23rd, 2009, 10:23 AM
I assume it is necessary to escape '<' and '>' in a pango string if they need to be displayed themselves. For example, if I had an input box and a program converted it to bold, it would wrap bold tags around the text. How would I handle an input of '<s>hello</s>' which would be parsed as a strike-through text? I want all of the input to be visible.

G|N|
February 23rd, 2009, 10:38 AM
&lt;s&gt;hello&lt;/s&gt;

&lt; = <
&gt; = >