Bypass HTML Filter / Reference Raw $_POST Vars?
Hello all, I've searched for the last 2 hours online and I'm a little stuck. I know a lot of filtering talk has taken place on this list, but I haven't seen any answers regarding this... Is there a way to bypass the filtering of content from a code level? I've written a module and would like to bypass HTML filtering on a 2 specific fields, and those 2 only, but I'm unable to find a way to do this. I don't think using the Input Filterting in Drupal Admin to create roles and such is the way to go. I thought perhaps referencing the $_POST vars directly would work, but it seems Drupal processes them before my module can get to them. Anyone know of a way to get the raw posted content or bypass the filters? Thanks for your help! -Mike
Not sure if this is any help. You can use the nodeapi hook / "load" to get stuff before the filter is applied: http://api.drupal.org/api/HEAD/function/hook_nodeapi Doug Green 904-583-3342 www.douggreenconsulting.com Bringing Ideas to Life with Software Artistry and Invention... Providing open source software political solutions -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Mike Graben Sent: Monday, September 04, 2006 8:06 PM To: development@drupal.org Subject: [development] Bypass HTML Filter / Reference Raw $_POST Vars? Hello all, I've searched for the last 2 hours online and I'm a little stuck. I know a lot of filtering talk has taken place on this list, but I haven't seen any answers regarding this... Is there a way to bypass the filtering of content from a code level? I've written a module and would like to bypass HTML filtering on a 2 specific fields, and those 2 only, but I'm unable to find a way to do this. I don't think using the Input Filterting in Drupal Admin to create roles and such is the way to go. I thought perhaps referencing the $_POST vars directly would work, but it seems Drupal processes them before my module can get to them. Anyone know of a way to get the raw posted content or bypass the filters? Thanks for your help! -Mike
On 9/5/06, Mike Graben <ratlhead@ratlhead.com> wrote:
Is there a way to bypass the filtering of content from a code level? I've written a module and would like to bypass HTML filtering on a 2 specific fields, and those 2 only, but I'm unable to find a way to do this.
Now that $node->body is an array, and each field of a node's outputted body gets handled separately, we should probably change the filtering system so that it is configurable per-field, rather than being configurable per-node. Or maybe this is already possible? I know that CCK allows you to select the filtering system to use per-field. Cheers, Jaza.
participants (3)
-
Doug Green -
Jeremy Epstein -
Mike Graben