Page 1 of 1

HTML 2 XHTML Converter

Posted: Sun Sep 22, 2002 5:57 am
by Bronkoknorb
Hello!

This post is not directly related to PHP.
Does anybody know a HTML to XHTML converter?
It can be online or something to download.
It should do this things:
1) all Tags change to little letters
2) add to tags like <BR> a "/" on the end (<br />)
3) tell me tags where i forgot the end tag (for example: You forgot the </p>)
4) not change my PHP-Tags!!

there is a tool at http://www.html2xml.com but it destroys my PHP-Commands.

I would be happe, if someone helpedme!
Thanks!

Bronkoknorb

Posted: Sun Sep 22, 2002 6:31 am
by mydimension
yes, HTML Tidy at the following locations:

http://www.w3.org/People/Raggett/tidy/
http://tidy.sourceforge.net/

Tidy does have limited support for PHP, which is explained on the first link provided. hope this works for you.

Posted: Sun Sep 22, 2002 10:16 am
by Bronkoknorb
Thanks a lot.
But this program is very complicated and not easy to handle.
And I tried it with a php file an it got destroyed.

I would like a program that only does the things I listed above and is not so complicated.

Posted: Mon Sep 23, 2002 12:33 am
by Takuma
Try using Dreamweaver MX, it's got a tool that does that... (without destroying the PHP file)