WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#53709 new enhancement

Spaces as <br> in RSS Excerpts

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

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
2 months ago

  • Component changed from Editor to Formatting
  • Description modified (diff)
  • Keywords reporter-feedback removed
  • Type changed from feature request to 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.