Support » Requests and Feedback » Using HTML Tidy for valid XHTML posts

  • I’ve been using WP for only a few days, and already my pages don’t validate because some users don’t write valid XHTML. I can’t blame them, it’s a job after all.
    So why not validating and correcting all posts with HTML Tidy ?
    Now that the PECL wrapper is compatible with PHP 4.x, it’s probably pretty easy.
    Of course, that means that you have to install tidylib on the server, but if this remains a WP option turned off by default it shouldn’t be a problem.
    What do you think ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you say that users aren’t writing valid XHTML, are you talking posters or commentors?
    I agree that integration of HTML Tidy is worthwhile to pursue, and AFAIK that’s still in the dev path to 1.0.
    [If I’m dreaming that up, Matt can beat me with a stick.]

    Moderator Matt Mullenweg

    (@matt)

    Troublemaker

    If there was a tidy way to do it, I’d be all over it. 🙂
    Thanks for the linke Androse, I’ll look into this and see if it’s viable for packaging with WP.

    Until all posts and comments are guaranteed to be valid xhtml, CDATA blocks are the best way to represent them 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using HTML Tidy for valid XHTML posts’ is closed to new replies.