Jump to content

htmlentities and textarea


MDanz

Recommended Posts

this is my code, here's what i tried to resolve it...

 

$sumz= "car1>>car2";

$textsearch = array('<','>');
$textreplace = array ('<','>');
$textareatext = "$sumz";


			echo "<div style='display:none;' id='$number'>".str_replace($textsearch,$textreplace,htmlentities($textareatext))."</div>";

 

In the textarea it displays this

 

car1 >>car2

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.