2 Replies Latest reply: Apr 29, 2014 5:55 AM by sivacse24rep RSS

    HtmlText issue with special character

    sivacse24rep Community Member

      Hi,

       

      I have input text : "hai <b> how are </b> you? Guess my <i>age</i>. clue age between > 25 and < 29.<b> got it</b>?"

       

      I put every thing in html text. I am able to see text only till "....> 25 and". Not able to see "< 29.<b> got it</b>". When i removed the special character "<" every thing is fine.

       

      When i try to search i had advice to replace the "<" with &lt. If I replace all "<" string with &lt then the <b>,<i> are not working with htmltext.

       

      Is there any soultion to find and replace only the "<" character? (by regular expression)? any other way? help me with demo code

       

      Thanks,

      Siva