The ctools_cleanstring() function is used in many places, including in Panelizer to filter the CSS class names that are added to the page body. The problem is that the default separator, a dash, is often used in pairs to separate between object types, e.g. "node--article". Provide an option in ctools_cleanstring() that allows multiple occurrences of the separator to be left as-is.
| Comment | File | Size | Author |
|---|
Comments
Comment #1
damienmckennaThis provides a new setting 'keep separators' that allows multiple separators to be kept as-is.
Comment #3
damienmckennaFYI #2287353: Double dash css body class gets stripped no longer uses ctools_cleanstring().
Comment #5
njbarrett commentedI like this change, it's clean and only impacts you if you turn it on.
Comment #6
chris matthews commentedThe 5 year old patch to leanstring.inc does not apply to the latest ctools 7.x-1.x-dev and if still applicable needs to be re-rolled.
Comment #7
japerryDrupal 7 is no longer supported, closing.