Page MenuHomePhabricator

ProofreadPage slowly destroys HTML entities
Closed, ResolvedPublic


Author: Graf.Zahl

To demonstrate the bug:

  1. Open a page in the page namespace for which a page image exists (for example the URL given).
  1. Enter something like  
  1. Press "Show preview" repeatedly.
  1. The string   will slowly be destroyed until only an ordinary space (not a non-breaking space) remains.

In real life, what typically happens is that a non-breaking space is converted to an ordinary space. This is very annoying. It does not happen on pages outside the page namespace.

Version: unspecified
Severity: major



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:48 PM
bzimport added a project: ProofreadPage.
bzimport set Reference to bz10742.
bzimport added a subscriber: Unknown Object (MLST).

thomasV1 wrote:

it might be due to the regexp matching in proofread.js

Graf.Zahl wrote:

(In reply to comment #1)

it might be due to the regexp matching in proofread.js

Maybe you could just replace all & with & before the splitting?