Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#53709 new enhancement

Spaces as <br> in RSS Excerpts

Reported by: arskrigitsioniets's profile 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.

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

Change History (1)

#1 @sabernhardt
3 years 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.