felipeebs Posted September 7, 2007 Share Posted September 7, 2007 Hi, I have a form to post content to my site that supports bbcode, but if wanted, anyone can introduce html tags. The only thing I need is something to cancel the html tags, to do not accept < and > as html delimiters, but as normal characters. If any1 caan help... thx Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/ Share on other sites More sharing options...
cooldude832 Posted September 7, 2007 Share Posted September 7, 2007 so you want html to be inputted as literal text such as this form does with the [ code ] brackets? Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/#findComment-343454 Share on other sites More sharing options...
felipeebs Posted September 7, 2007 Author Share Posted September 7, 2007 yes, just what I want! want to the tags to not be interpreted as html, but as literal text Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/#findComment-343455 Share on other sites More sharing options...
trq Posted September 7, 2007 Share Posted September 7, 2007 Use htmlspecialchars(). Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/#findComment-343459 Share on other sites More sharing options...
cooldude832 Posted September 7, 2007 Share Posted September 7, 2007 you still have an issue on the output, somehow you have to make it output it as text and not phrase it as html Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/#findComment-343466 Share on other sites More sharing options...
trq Posted September 7, 2007 Share Posted September 7, 2007 you still have an issue on the output, somehow you have to make it output it as text and not phrase it as html Which is exactly what htmlspecialchars does. Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/#findComment-343468 Share on other sites More sharing options...
felipeebs Posted September 7, 2007 Author Share Posted September 7, 2007 Thank ya'll, specially thorpe for the function Topic Solved Link to comment https://forums.phpfreaks.com/topic/68307-solved-my-form-vs-html-tags/#findComment-343481 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.