Issue raised in https://git.radicallyopensecurity.com/nlnet/ngie-dokieli/-/issues/9 which has been remediated by DOM sanitization. It is still a good practice to create elements / set attributes.
This would be a large refactor. Go through these files: