[wp-hackers] applying a filter to when a new post is made

Ryan Boren ryan at boren.nu
Tue Aug 10 01:34:24 UTC 2004


On Mon, 2004-08-09 at 21:11 -0400, Owen Winkler wrote:
> > I was thinking of converting backslashes in the code
> > sections(HTML, CSS, PHP, JAVA, SQL), as HTML entities, when using
> > iG:Syntax Hiliter plugin, so that they are displayed as backslashes.
> > Currently WordPress strips them from the post content, so obviously they
> > don't appear in the post.
> 
> I haven't tried any of this, but couldn't you add a filter that converts
> backslashes into entities before WordPress did it?  Or does WordPress make
> this change to the post before the data is committed?  If it does, that's
> bad.  Fundamentally, the post should go into the database "as typed",
> shouldn't it?

The backslash stripping is fixed in the nightlies.

Ryan




More information about the hackers mailing list