dachshund Posted February 11, 2010 Share Posted February 11, 2010 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 < 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 More sharing options...
sader Posted February 11, 2010 Share Posted February 11, 2010 htmlentities($str, ENT_QUOTES) read about this function in manual Link to comment https://forums.phpfreaks.com/topic/191832-html-in-value-of-input/#findComment-1011080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.