public class CSSIdentifierSerializer extends Object
See https://drafts.csswg.org/cssom/#serialize-an-identifier
| Constructor and Description |
|---|
CSSIdentifierSerializer() |
| Modifier and Type | Method and Description |
|---|---|
String |
serialize(String identifier)
Serialize a CSS identifier.
|
public String serialize(String identifier)
NOTE: This code was adapted from Mathias Bynens' CSS.escape polyfill, available under the MIT license.
See https://drafts.csswg.org/cssom/#serialize-an-identifier and https://github.com/mathiasbynens/CSS.escape.
identifier - the identifier to serializeIllegalArgumentException - if the input contains U+0000Copyright © 2004–2016 XWiki. All rights reserved.