a1amattyj Posted February 1, 2009 Share Posted February 1, 2009 Hello, Im trying to create a simple HTML editor to edit a few html templates. Im using a text area to edit the template HTML in. <textarea>templatedata from mysql</textarea> However, say one of the templates had a textarea in it, it would "screw up" the page as it would stop the initial text area. Are there any ways around this? i have tried using str_replace to replace all '<' in the data with a ascii html letter. But it won't take it. Thanks alot! Link to comment https://forums.phpfreaks.com/topic/143398-solved-simple-html-editor/ Share on other sites More sharing options...
GingerRobot Posted February 1, 2009 Share Posted February 1, 2009 You want to run all the code through htmlentities Link to comment https://forums.phpfreaks.com/topic/143398-solved-simple-html-editor/#findComment-752166 Share on other sites More sharing options...
a1amattyj Posted February 1, 2009 Author Share Posted February 1, 2009 You want to run all the code through htmlentities Thanks for that! Works Link to comment https://forums.phpfreaks.com/topic/143398-solved-simple-html-editor/#findComment-752176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.