Page 1 of 1

printing string with tags

Posted: Fri Sep 12, 2003 3:07 am
by yaron
Hi,
I have strings that are between tags:
<tagname bla bla bla bla bla></tagname>

when I try to print that the browser takes that as an actual tag and not a string and I get a blank result...
Is there a way around that?

Thanks

Posted: Fri Sep 12, 2003 3:20 am
by twigletmac
You want to print out the tags?

Code: Select all

echo htmlspecialchars($string);
Mac