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