Opened 3 years ago
Closed 3 years ago
#53851 closed defect (bug) (duplicate)
HTML entities show in dashboard 'Events and News' widget
Reported by: | alanjacobmathew | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.8 |
Component: | Widgets | Keywords: | has-patch needs-testing |
Focuses: | ui, accessibility, administration | Cc: |
Attachments (1)
Change History (7)
#1
@
3 years ago
- Component changed from General to Widgets
- Focuses administration added
- Keywords has-patch needs-testing added
- Summary changed from HTML code stays as HTML itself and not getting converted to text on dashboard page to HTML entities show in dashboard 'Events and News' widget
Thanks for the report!
Adding an extra curly brace can keep the event title (and perhaps other information) un-encoded.
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
3 years ago
#3
@
3 years ago
- Milestone changed from Awaiting Review to 5.9
- Version set to 4.8
The ticket was reviewed during today's Accessibility Team's bug-scrub.
The patch is very small, milestoning for 5.9.
#4
@
3 years ago
Tested the patch, and it works as expected.
Should we also make the same change for the event city that appears in the next line?
#5
@
3 years ago
I feel like @iandunn did some similar work around this a little while ago. I think we should keep escaping the output as we can't trust an external API (even tho WordPress controls it).
#6
@
3 years ago
- Milestone 5.9 deleted
- Resolution set to duplicate
- Status changed from new to closed
Yeah, I think this is a duplicate of #41208. I agree w/ Jake about keeping the escaping, but ticket:41208#comment:2 might work.
I'll go ahead and close this, and we can continue discussion there. Feel free to re-open if I missed something and this is unique, though.
removing HTML escape from
event.title