Closed Bug 900177 Opened 11 years ago Closed 11 years ago

Escaped HTML entities are being removed in snippet editor.

Categories

(Snippets :: Service, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: osmose, Assigned: osmose)

Details

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.
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.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: nobody → mkelly
You need to log in before you can comment on or make changes to this bug.