See https://docs.acquia.com/articles/using-filter-functions-intended-filterx...

We need to document at https://www.drupal.org/writing-secure-code and/or https://www.drupal.org/node/28984 that people should use drupal_clean_css_identifier() or similar, otherwise they get XSS issues.

Comments

jhodgdon’s picture

Project: Drupal core » Documentation
Version: 8.0.x-dev »
Component: documentation » Missing documentation

This issue seems to be about editing drupal.org pages, so moving to appropriate queue. If you think some documentation in Core files needs patching, please move this issue back to Drupal Core and suggest where this documentation should be added to functions, classes, and/or topic pages on api.drupal.org. Thanks!