dark_mirage Posted April 15, 2008 Share Posted April 15, 2008 Just a quick question, i have a profile page on my site, where members can submit their own info, for everyone else to view (think, facebook/myspace). However, at the moment, they are able to put html in their profiles, and it will be outputted in html on the profile page that everyone sees. Is there a way to stop this? and only have formatting such as line breaks, but no html tags? I think ive made this sound more complicated than it is to be honest, if nobody understands what i mean il try and rephrase Thanks for any help. Link to comment https://forums.phpfreaks.com/topic/101259-prevent-html/ Share on other sites More sharing options...
craygo Posted April 15, 2008 Share Posted April 15, 2008 look here http://us.php.net/strip_tags you can set tags you want to allow also. Ray Link to comment https://forums.phpfreaks.com/topic/101259-prevent-html/#findComment-517949 Share on other sites More sharing options...
dark_mirage Posted April 15, 2008 Author Share Posted April 15, 2008 thats perfect, thanks a lot Link to comment https://forums.phpfreaks.com/topic/101259-prevent-html/#findComment-517952 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.