Abbeh Posted September 19, 2008 Share Posted September 19, 2008 Okay, here's the story. I own a PHP/MySQL equine sim game which allows members, on their account pages (which other members can view) to insert their own HTML and create their own personal layout. However, some forget to end table tags, or some other HTML tags and it kinda messes around with the site's main layout. How can I combat this? Is there a code that can end tags, or am I just going to have to include tutorials Thanks for reading Link to comment https://forums.phpfreaks.com/topic/124992-ending-members-html-tags-within-php/ Share on other sites More sharing options...
sKunKbad Posted September 19, 2008 Share Posted September 19, 2008 You could make their content appear in an iframe, and then even if they have coding mistakes, I believe there will be no effect on the rest of the page. Link to comment https://forums.phpfreaks.com/topic/124992-ending-members-html-tags-within-php/#findComment-645859 Share on other sites More sharing options...
Abbeh Posted September 19, 2008 Author Share Posted September 19, 2008 I already have that for the basic members, but one of the account upgrading "perks" was to have a full-page layout but thanks for the suggestion! Link to comment https://forums.phpfreaks.com/topic/124992-ending-members-html-tags-within-php/#findComment-645862 Share on other sites More sharing options...
DarkWater Posted September 19, 2008 Share Posted September 19, 2008 Try the tidy library. Link to comment https://forums.phpfreaks.com/topic/124992-ending-members-html-tags-within-php/#findComment-645886 Share on other sites More sharing options...
discomatt Posted September 19, 2008 Share Posted September 19, 2008 I really like http://htmlpurifier.org/ Link to comment https://forums.phpfreaks.com/topic/124992-ending-members-html-tags-within-php/#findComment-645932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.