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
Convert into Mormal text
Moderator: General Moderators
- prometheuzz
- Forum Regular
- Posts: 779
- Joined: Fri Apr 04, 2008 5:51 am
Re: Convert into Mormal text
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.