Escaped HTML entities are being removed in snippet editor.

RESOLVED FIXED

Status

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mkelly, Assigned: mkelly)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

5 years ago
Steps to reproduce:
1. Create a new snippet that has an HTML entity in it, like `&`.
2. Save the snippet and open it for editing again.

Expected: The snippet code as you entered it will be shown in the textbox again.

Actual: HTML entities, like &, will be unescaped in the textbox. For example, `&` will become `&` and cause XML validation errors if you try to submit it without fixing it.

Comment 1

5 years ago
Commit pushed to master at https://github.com/mozilla/snippets-service

https://github.com/mozilla/snippets-service/commit/003a704aa3aec2042714c63fb9678c63b9340414
Fix bug 900177: Enable autoescaping in nunjucks for compiled templates.

See https://github.com/jlongster/nunjucks/issues/105 for details on why
we have to do this.

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Assignee)

Updated

5 years ago
Assignee: nobody → mkelly
You need to log in before you can comment on or make changes to this bug.