Skip to content

[BUG] Diff/search/replace alters HTML entities (unexpected code changes) #8069

@hannesrudolph

Description

@hannesrudolph

Type

Bug

Problem / Value

When applying changes, encoded characters like &, <, and > are sometimes changed or removed. This leads to unintended edits and can break code or markup, causing confusion and rework.

Context

Users applying diffs or performing search/replace see encoded characters (HTML entities) modified in ways they didn’t intend. This has been raised multiple times and earlier fix attempts did not land, so the behavior persists. A consistent, predictable outcome is needed where encoded text is preserved exactly as written.

Constraints/Preferences

  • Preserve encoded characters exactly as authored; avoid automatic conversion between entities and literal characters
  • Ensure behavior is consistent across single-file and multi-file change flows
  • Add regression coverage to prevent recurrences

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Issue [Unassigned]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions