Closed
Bug 1030146
Opened 11 years ago
Closed 9 years ago
[Calendar] Event View: event notes doesn't respect line breaks
Categories
(Firefox OS Graveyard :: Gaia::Calendar, defect)
Firefox OS Graveyard
Gaia::Calendar
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1183546
People
(Reporter: mmedeiros, Unassigned)
Details
steps to reproduce:
1. open calendar app and click the "add event" button
2. edit the "Notes" field, adding multiple line breaks between the words/phrases.
3. save the event.
4. open the event details.
5. see that "Notes" are displayed as a single paragraph (line breaks are removed).
expected output: I expect the view event view to display the line breaks.
PS: this happens with events created on local calendar or on events imported from an external calendar. We store the proper value but we are simply not converting the line breaks into `<br>` before displaying.
PPS: we can't use a naive `nl2br` implementation since this can be used as a possible attack vector (calendar server might inject malicious HTML/JS), it needs to escape all HTML tags besides `<br>`. It would be great if we had a shared lib for things like this.
Reporter | ||
Comment 1•9 years ago
|
||
marking as a duplicate since Bug 1183546 have more details and more people cc'ed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•