6D Labs / CQ Extended Tag Library / API / Expression Language Functions / escapeSelector
Escapes the provided string into a valid CSS selector. The string will be converted to lowercase, and all non-ASCII characters replaced with ‘-’
java.lang.String
- the string to escapejava.lang.String
- The escaped string
Example:
${ext:escapeSelector(resource.name)}