Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
White space replacement: Escape '<>&' before setting innerHTML, v2.1.1
Setting the innerHTML attribute of the node is necessary when we replace the white spaces by alternative characters, because we need the spans to be interpreted to set “comment”-style (font color) for those characters. But if we omit to escape HTML special characters, they get interpreted in the process! Let's escape them before replacing the white spaces. Increment version to v2.1.1, for releasing the fix Fixes: #99 Reported-by: @iiey
- Loading branch information