New Plugin: X-Valid
-
I’ve coded up a plugin, X-Valid, which should ensure that all posted content outputs valid XHTML. This is inline with WordPress’ own standards adherence. This replaces my previous attempt at solving this problem, CounterBalance, which wasn’t a particularly intelligent solution!
It handles incorrectly nested tags and improper attribute values and works one time only at the point of posting or editing. If problems are found that can’t be fixed automatically, a window pops up listing the errors. This feedback can also be set manually by checking a box at posting time.
Find it here: https://www.jamietalbot.com/wp-hacks/
Installation is simple; unzip the file and save it in the plugins folder, then activate it from the Plugins menu. A small message appears under the main content editing box when it is correctly installed. You should disable WordPress’ own tag balancing, if enabled, which will probably clash and is a little buggy anyway. The feedback uses a temporary file stored in the wp-content folder, so this must be writable. (Incidentally, devs/authors is this the best place to store such a thing?)
It handles a wide range of markup errors, has performed well on a lot of test cases and has never removed any text, as WordPress’ own balancing solution occasionally does.
Comments, feedback, improvements, bug-reports all welcome! Contact info on the download page, or post here…
Hope it helps someone, and thanks to the peeps on the hackers mailing list for thoughts and input along the way!
Jamie.
- The topic ‘New Plugin: X-Valid’ is closed to new replies.