|
Posted by Razzbar on 04/27/07 17:11
You want something to 'fix' the HTML code for you, like Tidy does. I'd
like to say
that it's impossible, but of course, it isn't impossible *in theory*.
It's easy enough to say, use the w3c validator and fix the HTML
yourself!
The tool you want would have to interpret PHP and then 'validate' the
*output*
of your PHP script, and then somehow figure out where in the script
the
error came from... There are so many ways PHP can generate HTML, this
would require a HUGE amount of intelligence. It would have to figure
out
how and where the HTML came from.
The number of ways PHP (or any program) can generate HTML (or anything
else) is infinite.
No tool can be that smart.
I suppose it could be done if combined with some template based
programming
discipline, but it'd be easier to use the w3c validator to find the
errors, and your
knowledge of your script to figure out where that error came from.
Navigation:
[Reply to this message]
|