Ticket #7375 (closed defect (bug): fixed)
RSS Widget displays HTML
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6.1 |
| Component: | General | Version: | 2.6 |
| Severity: | normal | Keywords: | rss,widget,html |
| Cc: |
Description
The RSS widget displays the HTML in a feed instead of passing it through filters and using the HTML. This means that links and other code don't work.
Attachments
Change History
Change needed in wp-includes/widgets.php
Fixed when I change line 1139 from
$desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($summary, ENT_QUOTES))));
to
$summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($summary, ENT_QUOTES))));
$desc and $summary where being set to the same thing, so I consolidate the logic.
comment:4
MtDewVirus — 4 years ago
Works much better with this patch.
Are tags stripped because they could cause layout problems?
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

