Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

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.

Maintainers for Drush Body Mangler

  • spiderman - 3 commits
    last: 1 year ago, first: 1 year ago

Issues for Drush Body Mangler

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here