• Anyone working on, or know of, a WP plugin for HTML Tidy? There was one recently availabe for MT; I never was able to get it to work properly. It is a nice idea, something that checks your post to ensure that it is compliant.

Viewing 2 replies - 16 through 17 (of 17 total)
  • you’re welcome ??
    yeah, tidy is available as a pear (pecl actually) package, so if the host allows you to use dl(), which I doubt, you can load the library dynamically. All you need to do is either find the .so file compiled for the OS on the host, or grab it and compile it there (you’ll need shell access and some development tools, including the php development libraries).
    If you have shell access and the needed tools, installing is as simple as
    pear -v install -R some_root_dir tidy
    -R is needed because you don’t have root access ??
    But you will need access to the dl() function, if the host won’t install that extension for you.
    More info is available at https://www.php.net/manual/en/ref.tidy.php

    anonymous-surfing-tips

    (@anonymous-surfing-tips)

    I’m also having the same problem with wptidy that yucca had – i’m on a hosted linux box with PHP 4.3.11 (https://carbon.nocdirect.com/phpinfo/)

    Activate the plugin, attempt to edit a post and you get an error:

    Fatal error: Cannot instantiate non-existent class: tidy in wptidy.php on line 46

    I looked at the wptidy.php – no trailing spaces / linefeeds. I also tested the installation with the php snippet described above – it works.

    Any other suggestions?
    (n.b. – sorry for the cross post / multiple posts on your blog – I also had problems posting a complete comment on your blog.)

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘HTML Tidy’ is closed to new replies.