Closed
Bug 1441696
Opened 6 years ago
Closed 4 years ago
express tutorial escaping text twice
Categories
(Developer Documentation Graveyard :: General, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: tstoddard420, Unassigned)
References
()
Details
:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details After creating the book_form and adding a new book, I discovered that the text in the summary field gets escaped before it's getting stored in the database and then it gets escaped again when the book_detail view is rendered. This causes characters such as single apostrophes to be displayed incorrectly in the web page. I fixed this by change # to ! in the book_detail .pug file for the summary field. The author field should also be changed if the text from the book_form is going to be escaped before it gets stored. I'm not sure which is the best or correct way to handle this. Should the summary and author fields not be escaped before they are saved to the database or should the text not be escaped when the view is rendered. It would be nice for the tutorial to explain this.
Updated•6 years ago
|
Priority: P5 → P1
Updated•6 years ago
|
Priority: P1 → P3
Comment 1•4 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•