I took the advice and updated the code to generate DOM nodes instead of setting HTML directly - it should decrease the risk of XSS
127 karma · joined September 7, 2017
email: hn[at]srimukh[dot]com
For people reading this, the parent comment is referring to this line[1] from a previous revision of the gist.
[1]: https://gist.github.com/postmalloc/e2602752d46c5b9dee2446235...