Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ThomasMortagne1 +XWiki.mflorea - Content
-
... ... @@ -61,6 +61,12 @@ 61 61 |{{image reference="NotificationsInside.png"/}} 62 62 ))) 63 63 * A new ##extractFirstReference(EntityType)## API has been added to ##EntityReference##: Extract the first entity of the given type from this one by traversing the current entity to the root. This differentiates it from ##extractReference(EntityType)## which extracts the last entity of the given type. 64 +* The escape Velocity tool has a new method to escape CSS identifiers. This is similar to ##CSS.escape()## available in JavaScript, and is useful if you want to create CSS selectors dynamicaly using untrusted input.((( 65 +{{code language="none"}} 66 +$escapetool.css('a#b.c d[e=f]g{h:i;j}k') 67 +## Output: a\\#b\\.c\\ d\\[e\\=f\\]g\\{h\\:i\\;j\\}k 68 +{{/code}} 69 +))) 64 64 65 65 = Translations = 66 66