This is an automated archive made by the Lemmit Bot.

The original was posted on /r/opensource by /u/-metasequoia on 2024-10-24 11:12:57+00:00.


Have to gush because it was so cool haha. :D

I was working on HTML regex at work and was trying to copy paste the and fields into my note-taking app (Anytype) to save the regex patterns. It didn’t work, and only the contents of the fields were being copy-pasted instead. Tried in my other note-taking app (Notion) and it worked.

Probably some sanitization issue? Went to the GitHub repo, looked for similar issues - none, tried to open an issue, and I look at the repo. The latest commit at the top was “fix xss - 6 minutes ago”.

No way. That’s so cool. Haha. Looked at the commit and, although I didn’t understand the code exactly, they replaced a line that was like ${U.Common.sanitize(U.Common.lbBr(text))} with ${text}. I think that was exactly what my issue was.

That’s so cool. To think I had this issue and someone else out there in the world at that exact moment had it too, and fixed it. Open source is so cool. :D