Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#7375 closed defect (bug) (fixed)

RSS Widget displays HTML

Reported by: mtdewvirus's profile MtDewVirus Owned by:
Milestone: 2.6.1 Priority: normal
Severity: normal Version: 2.6
Component: General Keywords: rss, widget, html
Focuses: 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 (1)

7375.diff (1.4 KB) - added by ryan 17 years ago.

Download all attachments as: .zip

Change History (8)

#1 @MtDewVirus
17 years ago

  • Version set to 2.6

#2 @dsader
17 years ago

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))));

@ryan
17 years ago

#3 @ryan
17 years ago

$desc and $summary where being set to the same thing, so I consolidate the logic.

#4 @MtDewVirus
17 years ago

Works much better with this patch.

Are tags stripped because they could cause layout problems?

#5 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8567]) Strip tags from summary. Props dsader. fixes #7375 for trunk

#6 @ryan
17 years ago

  • Milestone changed from 2.7 to 2.6.1

#7 @ryan
17 years ago

(In [8568]) Strip tags from summary. Props dsader. fixes #7375 for 2.6

Note: See TracTickets for help on using tickets.