50
submitted 1 year ago* (last edited 1 year ago) by AlmightySnoo@lemmy.world to c/lemmy@lemmy.ml

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
[-] Amir@lemmy.ml 17 points 1 year ago

It actually looks perfectly fine on Sync for Lemmy so I assume this is only a front-end problem. There are alternative front-ends that you could try.

[-] jmcs@discuss.tchncs.de 8 points 1 year ago

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

[-] NinjaFox 11 points 1 year ago

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

[-] Crul@lemm.ee 6 points 1 year ago* (last edited 1 year ago)

There are alternative front-ends that you could try.

The 3 frontends for browser / PC that I know (default, mlmym and alexandrite) have this problem. Do you know of any other one that works?

Thanks!

this post was submitted on 28 Aug 2023
50 points (100.0% liked)

Lemmy

12546 readers
21 users here now

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

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS