Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 795
ford Avatar asked Jun 02 '10 17:06

ford


1 Answers

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

like image 143
googletorp Avatar answered Oct 19 '22 05:10

googletorp