Filtering input instead of output?
-
I’ve been staring long and hard at the plugin API for a while now, but to no avail. All filter hooks seem to deal with filtering the output, that is the content going from the database on its way to the browser. What I need is a hook to filter the input when editing/saving a posting on its way to the database.
For what I’m trying to do: I’d like to write a plugin that converts short wiki-like markup into HTML while saving the posting. Note that this is a totally different thing from what the markdown or textile plugins do: these convert to HTML on the way out, leaving me with awkward markup in the database forever (which is something I don’t like at all for various reasons).
The action hooks don’t seem to fit the bill either. There’s nothing like “save_post”…
Any ideas?
- The topic ‘Filtering input instead of output?’ is closed to new replies.