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 Quote 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? Quote 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 Quote 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(). Quote 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 Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.