Posted by spiderman on May 12, 2011 at 6:39am
This is not a module, but a drush script, which is a fairly straight-forward exercise in string manipulation, searching for links (anchor tags) that are missing title attributes. It does this in a very crude way, searching only the body field as rendered by a node_load() call.
However, the exercise of writing it (and the preceding hunt for some Drupal Best Practice on this) was instructive. One can imagine any number of uses for a script(s) like this, if it had some features like:
- Configurable search/replace strings
- More wizard-like configs ie. "find img tags with no alt tag"
- CCK-aware search/replace
- More robust checking/parsing of tags and secure handling of user input (which in my case is minimal and tightly-controlled, at least for the duration of this script's usefulness)
- a webUI, I guess? ;)
This blog post explains the story behind this project in more detail.