R4nk3d Posted September 10, 2009 Share Posted September 10, 2009 Hey Guys, Haven't logged on in awhile, but I got a big 4 week website project and I need some help :'( So I'm incorporating a CMS into the site. Any staff member at work can login to the admin panel and add/edit/remove pages and announcements. So I am trying to incorporate our old website's pages into our new website's by just a simple copy + paste into the sql tables. I know this won't work 100% but that's not the big problem. I do not want to put bbc on the code so we can use any html, php, css we want to add to individual pages. The problem is, sometimes (a lot of times actually) the page that I'm writing from the sql server has open tags like <table> or maybe it closed too many tags at the end that aren't really opened. I was wondering if there's a way for me to parse the code that I'm receiving to get it just written into a <div> where it won't mess up anything on the page. If I need to be more specific, please post asap. I definitely need this answered. Thank you so much, R4nk3d Quote Link to comment https://forums.phpfreaks.com/topic/173734-parsing-a-field/ Share on other sites More sharing options...
Mark Baker Posted September 10, 2009 Share Posted September 10, 2009 I'd have a look at something like htmlpurifier Quote Link to comment https://forums.phpfreaks.com/topic/173734-parsing-a-field/#findComment-915907 Share on other sites More sharing options...
R4nk3d Posted September 10, 2009 Author Share Posted September 10, 2009 Ok, ill check it out. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/173734-parsing-a-field/#findComment-915955 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.