[wp-hackers] Issues with wpautop and my plugin

Kimmo Suominen kimmo+key+wordpress.c4f53f at suominen.com
Thu Aug 3 12:01:12 GMT 2006


On Thu, Aug 03, 2006 at 04:57:09AM -0700, Viper007Bond wrote:
> I'm adding HTML into a post via a filter.
> 
> Let's say my code is structured like this:
> 
> <this><is><some><html>
> 
> The problem is that wpautop is doing basically this:
> 
> <p><this><br />
> <is><br />
> <some><html>
> </p>
> 
> How can I stop those line breaks from being added? Should I like use 
> some regex to get rid of them?

Add your filter after wpautop, e.g.

add_filter('comment_text', 'myfilter', 99);

Best regards,
+ Kimmo
-- 
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>



More information about the wp-hackers mailing list