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 )
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The
wp_trim_wordsfunction in the RSS block and the classic widget strips all tags before creating the excerpt.To replace
brtags with spaces, would it be good to address that in both RSS-related files or within thewp_trim_wordsfunction itself?