[support] sanitizing text box input for sql searches (custom search)

Greg Knaddison greg.knaddison at gmail.com
Wed Mar 3 13:12:57 UTC 2010


On Wed, Mar 3, 2010 at 5:52 AM, Michel Morelli <michel at ziobuddalabs.it> wrote:
>
> you need to use "input filter" and the function to use is "check_markup".
>

That is part of the story for simple cases, but not enough if your
node is complex. Complex nodes need to be rendered using node_view
http://api.drupal.org/api/function/node_view

Please also consider this text filtering cheat sheet which helps take
the confusion out of when to use which of the many text filtering
functions:

http://crackingdrupal.com/blog/greggles/drupal-text-filtering-decision-cheat-sheet

Regards,
Greg

-- 
Greg Knaddison | 303-800-5623 | http://growingventuresolutions.com
Mastering Drupal - http://www.masteringdrupal.com


More information about the support mailing list