Some python code. A bit clumsy and no scoping (still not sure how it's done), but it seems to work.
https://gist.github.com/dallaylaen/79ef8d5caa0c36c9f735
In reply to Re^2: Packing unsafe string for later context-based escaping
by Dallaylaen
in thread Packing unsafe string for later context-based escaping
by Dallaylaen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |