|
Posted by shimmyshack on 04/26/07 21:21
On Apr 26, 7:34 pm, webrod <rodolphe.aous...@gmail.com> wrote:
> Hi,
>
> do you know a tool like TIDY which allows to validate the HTML code
> with PHP tags?
>
> TIDY is not good enough because it removes a lot of php code!!
>
> Thanks for your help..
>
> Rod
quite often unparsed markup+php will not be compliant, as you are
replying on php to insert required elements and attribute values, so
the logical thing to do would be to use a validator that runs within
firefox, there are a few addons which do this ("html validator" being
one), then the parsed markup is validated, and the results displayed
in the browser for you to see, much more convenient than trying to
validate mixed code. You can also use an online validator which does
the same thing, but this requires that your pages be public (or at
least public for the validator IP) which you might not want.
[Back to original message]
|