I used to be able to filter text that's inside HTML tags. Then http://drupal.org/cvs?commit=261586 got committed and its not allowed any more.

I need to ensure people are not adding title & alt attributes and in one case blocking people from linking to .gif files on forum posts.

It would be nicer to have the don't filter n HTML feature as a check box to activate

Comments

jaydub’s picture

There was far more support for allowing filtering of text between HTML tags and so that the tags themselves were not broken it was paramount to make sure that HTML tag attributes were left alone.

You can submit a patch to make this optional but it might be easier to simply write your own filter that accomplishes your more specific needs.

mjourney2’s picture

Seems to me that it would be quite useful to at least have this as an option. Especially to prevent people who keep creating spam messages, redirecting people to their web site.

jaydub’s picture

Status: Active » Closed (works as designed)

Please look through the discussion in http://drupal.org/node/344287 for context.

It's paramount that a filter NOT alter any strings that make up attributes in HTML tags. I can understand that you might want to filter out the href in a link in your content BUT for others who are using wordfilter to search and replace text content, also altering content in HTML attributes can have entirely unwanted and unintended consequences.

@mjourney2 - I suggest that if you want to use wordfilter as an antispam tool that you consider alternatives such as Mollom or Spam module which are very good about finding spam links and flagging the content based on a number of different criteria.