Skip to Content Skip to Navigation
Login
takahe

…aaaand I broke it ;)

Custom CSS does not work when using quotes, e.g. in `font-family: "Foo Bar"`. Django escapes to aggressively.

2012 post on says: “Use |striptags|safe”

Current docs say: “Warning: Never use |striptags|safe — use bleach.clean()”

Bleach docs: “clean() is not safe to use in CSS context.”

🐇 rabbit hole

(Just not using quotes in CSS works ;)

Edited 137d ago

Hello . Finally found the time to set up my own Server. Let’ see how this goes.