Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Use drupal_html_class() to clean class names
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal_html_class.patch | 681 bytes | Pasqualle |
Comments
Comment #1
Pasqualle.
Comment #2
cosmicdreams CreditAttribution: cosmicdreams commentedsubscribe, 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?
Comment #3
RobLoachComment #4
Dries CreditAttribution: Dries commentedGood catch. Committed to CVS HEAD.