Page 1 of 1

Convert into Mormal text

Posted: Sat Dec 20, 2008 12:51 am
by zerandib
Hello

$var = "<td>more info <p>this is sample test</p> example</td>"

This $var is treating as HTML text. (i.e: <td> and <p> as html tags)
How to treat them as normal text. That means <td> as a normal string, without treating as a HTML tag?


Thank You

Re: Convert into Mormal text

Posted: Sat Dec 20, 2008 1:00 am
by prometheuzz
I don't see how this is related to regex... But you can wrap <pre> ... </pre> tags around it before displaying it: that way, the actual tags are displayed instead of interpreted as html tags.