AXiSS Posted April 23, 2007 Share Posted April 23, 2007 I'm lost as to how. I want to restrict users to only using certain html tags, such as a, b, i, and u, and for certain special purposes only embed. Can someone enlighten me, please? Link to comment https://forums.phpfreaks.com/topic/48207-solved-restricting-certain-html-tags/ Share on other sites More sharing options...
clown[NOR] Posted April 23, 2007 Share Posted April 23, 2007 you wanna read about strip_tags() Link to comment https://forums.phpfreaks.com/topic/48207-solved-restricting-certain-html-tags/#findComment-235670 Share on other sites More sharing options...
AndyB Posted April 23, 2007 Share Posted April 23, 2007 http://ca.php.net/manual/en/function.strip-tags.php strip_tags can take an 'allowable tags' argument which can do what you ask. Link to comment https://forums.phpfreaks.com/topic/48207-solved-restricting-certain-html-tags/#findComment-235671 Share on other sites More sharing options...
AXiSS Posted April 23, 2007 Author Share Posted April 23, 2007 Thank you very much for your help. Link to comment https://forums.phpfreaks.com/topic/48207-solved-restricting-certain-html-tags/#findComment-235691 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.