How to keep textarea from converting special chars

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: How to keep textarea from converting special chars

Post by egami » Mon Apr 11, 2011 9:11 am

so you want the textfield to display the "&foobar" and not "&foobar" ?

I believe it would be in the htmlentities? or htmlspecialchars?

vgould

Re: How to keep textarea from converting special chars

Post by vgould » Fri Apr 29, 2011 8:37 am

this will work for you:
<?php echo htmlentities("&foobar"); ?>

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest