48
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Right now Lemmy is unusable for writing code that contains less than/greater than signs because Lemmy's sanitizer treats that as potentially malicious HTML code.

Here's an example:

if(x < y)
{
/* ... */
}

The listing becomes littered with < gibberish.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 8 points 2 years ago

This is what it looks in the web UI: Screenshot showing the bracket turns to ampersand lt

[-] [email protected] 11 points 2 years ago

This is how it looks on Sync, seems like he's a front end issue.

this post was submitted on 28 Aug 2023
48 points (94.4% liked)

Lemmy

13236 readers
2 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 5 years ago
MODERATORS