LanceT Posted February 8, 2007 Share Posted February 8, 2007 I want to allow certain tags such as <img, <a href, etc. But I want to disallow most tags and also Javascript. This is all in a text field that users will be able to enter their information in. What is an efficient way to do this? Link to comment https://forums.phpfreaks.com/topic/37609-text-field-not-allowing-javascript-but-allowing-some-html/ Share on other sites More sharing options...
trq Posted February 8, 2007 Share Posted February 8, 2007 Using strip_tags you can set which tags to allow. Link to comment https://forums.phpfreaks.com/topic/37609-text-field-not-allowing-javascript-but-allowing-some-html/#findComment-179841 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.