Use drupal_html_class() to clean class names

CommentFileSizeAuthor
#1 drupal_html_class.patch681 bytesPasqualle
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pasqualle’s picture

FileSize
681 bytes

.

cosmicdreams’s picture

subscribe, if this passes the automatic testing system I'll give this a go.

Looks like this api is new to drupal 7: http://api.drupal.org/api/function/drupal_html_class/7

It seems like it's inclusion can be a very useful utility function, has Drupal had anything like this in version 6 or older?

RobLoach’s picture

Priority: Normal » Minor
Status: Needs review » Reviewed & tested by the community
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Good catch. Committed to CVS HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.