23

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.

1 Answer 1

28

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

1
  • The question is about input filter, not input format. Input format consists of filters and check_markup() works with formats, not filters. Feb 1, 2016 at 6:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.