HTML escape sequence for &. Does this always happen when embedding articles on Lemmy?
Edit: I wanted to write a single ampersand of course, so it’s definitely Lemmy’s fault. Testing some other characters in in-line code: <>[]{}|~^# outside: < > [ ] { } | ~ ^ # &
Edit: so “<” and “&” in code are affected; also I see the comment like this when editing:
Testing some other characters in in-line code: `<` `>` `[` `]` `{` `}` `|` `~` `^` `#` outside: < > [ ] { } | ~ ^ # &
Someone likely implemented crude input sanitation and did not account for everything. I would prefer a closer-to-WYSIWYG editor where the user never sees escape sequences.
There’s a github issue about this if you want to add anything to it, this separate issue also has some details about the sanitation. The issue seems to have been introduced in v0.18.3.
HTML escape sequence for
&
. Does this always happen when embedding articles on Lemmy?Edit: I wanted to write a single ampersand of course, so it’s definitely Lemmy’s fault. Testing some other characters in in-line code:
<
>
[
]
{
}
|
~
^
#
outside: < > [ ] { } | ~ ^ # &Edit: so “<” and “&” in code are affected; also I see the comment like this when editing:
Someone likely implemented crude input sanitation and did not account for everything. I would prefer a closer-to-WYSIWYG editor where the user never sees escape sequences.
I don’t know. I tried to edit it but it wouldn’t let me.
As things stand now, it would likely not help until the issue is addressed.
There’s a github issue about this if you want to add anything to it, this separate issue also has some details about the sanitation. The issue seems to have been introduced in v0.18.3.