[wp-hackers] applying a filter to when a new post is made
Owen Winkler
ringmaster at midnightcircus.com
Tue Aug 10 01:11:55 UTC 2004
> 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?
Owen
More information about the hackers
mailing list