Open xdg opened 1 day ago
Thanks! One other thing is that the preview does not appear to be working with this PR. While typing deck notes, the preview box stays static:
The preview box not updating until keypress is like that on the deployed nrdb already.
Locally with your or parched in deck notes preview is not updating even when changing the contents.
I’m not at my computer at the moment to look more closely though.
On Sat, Nov 23, 2024 at 9:40 AM David Golden @.***> wrote:
The preview box not updating until keypress is like that on the deployed nrdb already.
— Reply to this email directly, view it on GitHub https://github.com/NetrunnerDB/netrunnerdb/pull/868#issuecomment-2495500647, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADA2EXU5ZKXCAOWKKPL3O32CCHXNAVCNFSM6AAAAABSIIV7MGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVGUYDANRUG4 . You are receiving this because you commented.Message ID: @.***>
PR #846 escaped special HTML characters in raw user-provided text, such as deck notes, with the unintentional side effect that these entities were encoded on save, and then re-encoded on the next save, etc. leaving deck notes, etc. effectively un-editable from a practical perspective.
This PR reverts #846 and replaces it with HTML sanitization using DOM Purify when raw user-provided text is rendered via Javascript.
Fixes #864.