Posted by Leonard Blaisdell on 01/24/06 12:00
In article <1138093793.16298.0@damia.uk.clara.net>,
Marc <mbradshaw@beasolutions.com> wrote:
> I have a Java-based rich-text editor which outputs XHTML, and although
> none of it is complex, my main problem is tag termination - ('<img ...
> />' instead of '<img ... >'). If I revert back to HTML, would XSLT be
> the best way to convert this before putting it into the database? Or
> would I be better of using some kind of regular expression in my PHP to
> convert it?
Depending on how complicated your XHTML is, Tidy(free) can certainly
convert XHTML1.0 to HTML4.01 and vice versa with the click of an option.
I'm sure I'm out of my league here and have misunderstood your problem.
leo
--
<http://web0.greatbasin.net/~leo/>
[Back to original message]
|