Ok, so I'm building websites, and I've signed up to web standards and want everything to be super sexy XHTML strict. I also want to allow site owners to be able to edit content using a simple bespoke content management system as I can't be arsed with shitty little jobs like that.
So I'm looking for a simple way of allowing CMS users to be able to markup textfields for basic formatting (currently using BB style markup, so they use for 'srtong' and so on).
That's all sorted, the bit I'm struggling with is checking to make sure that these tags are embeded correctly, so...
[em][strong]Some[/strong] text[/em]
not...
[strong][em]Some[/strong] text[/em]
So, er... Anyone know of a PHP XHTML Validator function? Or a web based CMS (in php) that churns out good XHTML? Found one but it's an ActiveX component. No chance.
Many thanks.