Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#53709 new enhancement

Spaces as <br> in RSS Excerpts

Reported by: arskrigitsioniets Owned by:
Priority: normal Milestone: Awaiting Review
Component: Formatting Version: 5.8
Severity: normal Keywords:
Cc: Focuses:

Description (last modified by sabernhardt)

Problem: if I use RSS block and want to show text excerpts, all <br> elements missing. It looks not very good, like missing spaces after some sentences. Look at the image, I highlighted places where is <br> in original RSS feed.

https://i.imgur.com/P6MsiL6.jpg
Feed: ​https://store.steampowered.com/feeds/news/app/1306770/?cc=RU&l=russian&snr=1_2108_4__2107

Suggestion: RSS block should display all <br> as spaces in excerpts.

Change History (1)

#1 @sabernhardt
5 years ago

  • Component Editor → Formatting
  • Description modified (diff)
  • Keywords reporter-feedback removed
  • Type feature request → enhancement

The wp_trim_words function in the ​RSS block and the classic widget strips all tags before creating the excerpt.

To replace br tags with spaces, would it be good to address that in both RSS-related files or within the wp_trim_words function itself?

Note: See TracTickets for help on using tickets.