Skip to content

[Bug]: The single quote character, ', is being double sanitized on edit #4003

@rhit-frantzag

Description

@rhit-frantzag

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

This bug is related to #3754, #3774, and #3987. Currently, when a post, comment, or sidebar is edited, all ' characters will be replaced with &;#x27;. Upon additional edits, & will be repeatedly prepended to the string, as shown in this image:
image.

Steps to Reproduce

  1. Post a comment, post, or add sidebar text containing ' on an affected instance.
  2. Edit the text that contains the ', change nothing, and submit.
  3. The bug will occur and will occur again upon each submitted edit.

Technical Details

lemmy_log.txt
My Lemmy instance is running on an Ubuntu VPS. The browser prints no console errors.

Version

0.19.0rc1

Lemmy Instance URL

lemmy.thesanewriter.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions