PDA

View Full Version : Checking user's html input for errors


Michiel
08-21-2003, 08:57 PM
Hi,

as I might have mentioned before I'm working on a Content Management System. I'm building this so a client of mine can easily update the website.

Since my client doesn't know much about html I'm looking for a way to increase his possibilities to the maximum and limiting the chance of him messing up the entire site.

I was thinking of implementing html-area or something similar that converts a textarea to a little wysiwyg editor. As you may or may not know this produces crappy, non-xhtml code. Now I'm looking for a way to covert the produce of this editor to xhtml, kind of like html-tidy does in several htmleditors.

I don't know whether something like this already exists. But if not could you give me some ideas on how to create something like this? I'm not in the position to install libraries or so on the server, so it has to be a pure php script.

Thanx for your help!

Michiel

Jason
08-21-2003, 10:31 PM
you might want to look into plone. It has everything you are mentioning. The base is Zope and then sitting on top of that, is CMF (the content manegment framework) and then sitting ontop of that is Plone. Now plone comes with a wikki and you can add a Product called EPoz which is your wyswig editor...it has much functionality. Check it out at Http://www.plone.org

I use it every day, its what my office works on. Though you should know its all written in Python..


Jason

Michiel
08-22-2003, 04:36 PM
Hi,

thanx for your reply. I will take a look at it. Still I think I want to use my own CMS. It is customized to fit my clients needs, so I'm not realy looking for a replacement of my own CMS.

All that my cms is lacking now is a module that checks tehe user-supplied html code, like html tidy does. Any suggestions (full scripts, articles or tutorials) are welcome.

Thanx again, Michiel.

SpeedFreak
08-22-2003, 05:34 PM
i suggest you have a look for free html editors over at www.hotscripts.com

download a few that get good ratings and take a peek at their tidy up functions - that will give you a good framework to work off of

Cheers