How to keep textarea from converting special chars

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

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

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?


Fri Apr 29, 2011 8:37 am

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest