HTML 2 XHTML Converter

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Bronkoknorb
Forum Newbie
Posts: 2
Joined: Sun Sep 22, 2002 5:57 am
Location: Vienna
Contact:

HTML 2 XHTML Converter

Post 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
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
Bronkoknorb
Forum Newbie
Posts: 2
Joined: Sun Sep 22, 2002 5:57 am
Location: Vienna
Contact:

Post 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.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Try using Dreamweaver MX, it's got a tool that does that... (without destroying the PHP file)
Post Reply