How do I programmatically apply a Drupal input filter?

I am currently exporting Drupal data to an external source (XML) programmatically. However, I want the data to run through the site's default Input Format (the filter that runs before user content is displayed on the website) before being written to file.

How do I programmatically apply a Drupal input filter? Is there a specific function call or hook for this purpose? If so, links/advice would be most appreciated.

Answers


You are looking for check_markup (D6), check_markup (D7)


Need Your Help

How to select a specific node programmatically?

jstree

I have a jstree. I want to select the node which is bound to the object which has a location with id of 158. This works but seems stupid. What's the more idiomatic way of doing this?

Django: 400 bad request syntax - what does this message mean?

django http hex ascii http-status-code-400

I am using django to build a simple website. When you type the base address (which for now is 127.0.0.1:8000/), I use django to show a view which does some checks and redirects you based on your user