Opened 4 years ago
Last modified 4 years ago
#53709 new enhancement
Spaces as <br> in RSS Excerpts
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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.
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)
Note: See
TracTickets for help on using
tickets.
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 thewp_trim_words
function itself?