* Replace in a string all occurrences of keys in the `ESCAPE_IN_STRING_MAP` map with their * original representation, this is simply used to revert the changes applied by the * escapeInStrings function. * * For example it reverts the text: * `animation: "my-anim%COLON_IN_PLACEHOLDER%at\"ion" 1
(input: string)
| 1248 | * @returns the css text without the placeholders. |
| 1249 | */ |
| 1250 | function unescapeInStrings(input: string): string { |
| 1251 | let result = input.replace(_cssCommaInPlaceholderReGlobal, ','); |
| 1252 | result = result.replace(_cssSemiInPlaceholderReGlobal, ';'); |
| 1253 | result = result.replace(_cssColonInPlaceholderReGlobal, ':'); |
| 1254 | result = result.replace(_cssLbraceInPlaceholderReGlobal, '{'); |
| 1255 | result = result.replace(_cssRbraceInPlaceholderReGlobal, '}'); |
| 1256 | return result; |
| 1257 | } |
| 1258 | |
| 1259 | /** |
| 1260 | * Unescape all quotes present in a string, but only if the string was actually already |