karlicoss / promnesia

Another piece of your extended mind
https://beepb00p.xyz/promnesia.html
MIT License
1.75k stars 75 forks source link

WIP: Space and other in class name #305

Closed yoyurec closed 2 years ago

yoyurec commented 2 years ago

A lot of chars allowed... https://stackoverflow.com/a/6732899/706389

So, if you need to turn a random string into a CSS class name: take care of NUL and space, and escape (accordingly for CSS or HTML). Done.

Should fix (full or partial) this issue - https://memex.zulipchat.com/#narrow/stream/279600-promnesia/topic/markdown.20link.20extraction