Jump to content

html in value of input


dachshund

Recommended Posts

hi,

 

i'm trying to do this

 


<input type="text" value="<? echo $rows['maincontent']; ?>" class="article_input">

 

but... maincontent contains html.

 

is there anyway to show this html as normal text

 

i know you can do replace < with &lt etc but i'm not sure how to do that.

 

any help would be great. thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/191832-html-in-value-of-input/
Share on other sites

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.