1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-06-01 14:14:06 +00:00
Simon Huber 69d3a47073 Add escapecss filter (#3546)
* add escapecss filter

this filter would allow creating valid css classes from titles containing special characters

we assign a class to an element using `encodeuricomponent[]` so that the class name is encoded

in a stylesheet we create the classname by `<title>escapecss[]` which applies the uri encoding and escapes characters that need to be escaped

* Update encodings.js

* refactor tagToCssSelector, add escapeCssSelector

* use escapeCssSelector

* escape using CSS.escape if it's available

* Update encodings.js

* revert factoring out escapeCssSelector
2019-06-26 12:32:01 +01:00
..
2019-05-30 16:54:57 +01:00
2019-06-26 12:32:01 +01:00
2018-09-28 16:01:32 +01:00
2019-04-16 10:15:58 +01:00