-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tom Klingenberg wrote: > hi devs, > > i just ran over function wpautop() (wp-includes/formatting.php) in wp > 2.1.2. next to the fact that it messes up the output (well that's the > fault of the input i guess^^), what exactly is the use of that function? > it should clear things up but it contains a lot of undocumented or only > slightly documented regular expression replacements. couldn't there be > any better way? > > --tom > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > >
It's main purpose is to change a double line break into <p> tags I think. If you're looking for better tag-balancing and cleaning, there are a couple of plugins that might do a better job for you. Off the top of my head, I can think of X-Valid (disclaimer: mine), wptidy and a plugin based on HTML purifier (though I'm not sure if that was actually released). Cheers, Jamie. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF7JyKrovxfShShFARAsf0AJ9Eut+WKM0RdZkClA3DPt0cHc0bewCeMLmn HKU59IRlYYjbrMlSp5fWo3A= =BHx1 -----END PGP SIGNATURE----- _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
