prevent conversion of <br/>

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-04-22T15:18:17Z Indexed on 2010/04/22 15:23 UTC
Read the original article Hit count: 196

Filed under:
|

Hello, I fear this is a dumb question, but I can't seem to find the answer. Pretty sure what that makes me......

I have C# generated HTML (HtmlGenerator), to which I sometimes want to insert a line break at a certain part of a cell's innertext.

Here is how that comes out:

  <TD >There are lots of extra &lt; br /&gt; words here </TD>

This then displays the <br/> as a part of my cell text - not good.

Am I missing an easy way to have the <br/> preserved and not converted to &lt, etc...?

thanks

© Stack Overflow or respective owner

Related posts about conversion

Related posts about br