6D Labs / CQ Extended Tag Library / API / Expression Language Functions / escapeSelector

escapeSelector EL Function

Escapes the provided string into a valid CSS selector. The string will be converted to lowercase, and all non-ASCII characters replaced with ‘-’

Parameters

  • string - java.lang.String - the string to escape

Returns

java.lang.String - The escaped string

Example:

${ext:escapeSelector(resource.name)}

Follow Our Blog Posts

Latest CQ News