wp_trim_excerpt()
calls wp_trim_words()
which applies wp_strip_all_tags()
to the excerpt. The <br>
tag is removed and not replaced with anything.
Not sure if this is feasible, but having a space after a colon is grammatically correct, and adding it to the original content would not affect the HTML, e.g.:
<p>My new question is: <br>why words are not separated by a white space?</p>
Related Posts:
- How to include line-breaks in the_excerpt?
- limit the words in the post content and add read more link
- How to correctly limit the content and strip HTML?
- Getting first 20 words without excerpt
- Gutenberg is Adding Additional HTML Tags When Grabbing the Excerpt
- Split the_content into two parts
- Using wp_trim_excerpt to get the_excerpt() outside the loop
- How can i limit the character length in excerpt? [duplicate]
- How to get the unfiltered excerpt, without […] or auto-excerpting
- Remove “Continue Reading” Link From the Teaser Excerpt Only
- Modify youtube video size on one page and show another size on different page
- Modify ‘Read more’ link adding a new class
- Limit the_excerpt in the first point (.) of the sentence
- Excerpts that don’t truncate words
- Spacing within the excerpt
- Custom Excerpt is returning 52 characters and not 52 words
- the_excerpt Read More Filter
- get_the_excerpt() not returning anything when post has no excerpt
- How to get the excerpts of all children pages
- How to hide and content from auto-generated excerpts?
- Custom excerpt showing first paragraph (with HTML formatting)
- Empty excerpt using wp_get_recent_posts
- Different ‘read more’ links
- The excerpt: Display text OR image OR video
- Read More for Excerpt not working
- Twenty Fourteen: Change Read More text
- wp_trim_words is trimming by character instead of by words
- Extremely slow pageload for long post when using the_content?
- adjust the_excerpt based on template page
- First letter cutting off in excerpt
- How to display links in excerpt? [duplicate]
- Getting the_excerpt to link to child pages [closed]
- Combining the_excerpt with the_content
- Show validation warning if no Excerpt is added
- How do I Add HTML to the_excerpt() & the_content() Output?
- Include post title in readmore link?
- Excerpt using Read More Tag
- How to show post content before read more tag (excerpt) for password protected posts?
- Excerpt_length nor the_excerpt not working correctly
- How to change the length of excerpt() method?
- Removing h3s in excerpt output?
- the_excerpt() in content.php and get_template_part() in single.php
- How to wrap “Read More” link in a DIV tag?
- Automatic excerpts
- how to get excerpt without p html tag from wordpress post
- How to properly show the Excerpt only if it exists?
- The excerpt doesn’t add Read more
- the_excerpt not displaying
- Excerpt is being added above the content, but it should be after it
- Text with special class as excerpt (or exclude special class)
- Display post excerpt instead of content, if available
- Add custom read more to the_excerpt and
- Remove [ and ] from excerpt
- How do I pull excerpts from pages?
- Post excerpt in custom meta box… help with proper php format
- has_excerpt() not working inside wp_query
- Is it possible to use words as starting and ending points of excerpt parameters?
- PHP Code in excerpt?
- How to replace get_the_excerpt with first N words of post article while stripping html
- first paragraph of the_content as meta description
- Single.php the_excerpt loads same as the_content not loading read more line
- Private Post BUT Public excerpt on Homepage
- My post excerpt does not work
- The excerpt suffix won’t go away
- content and excerpt not displaying
- Adding […] string for a custom excerpt function
- Replace text in excerpt
- How to achieve two different excerpt types on one WordPress site?
- Manual excerpt length on recent posts slider
- Remove ‘read more’ link when post is shorter than excerpt
- Excerpt not alway available
- Continuum Theme – Excerpt length
- Prevent Advanced Excerpt from Being Called
- Reblog WordPress to another WordPress?
- how to include page content to specified length & then “read more” link
- How to enable excerpts just on the “Posts page”
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- get_the_excerpt only returns one excerpt
- Display Full Content Instead of Excerpt
- How to use limit post content on archive page in WordPress?
- Excerpt being limited too early
- Help needed using wp_trim_words
- Excerpt of certain page to display on home page
- get_the_excerpt adding unwanted links to output html
- How to add a new line to an excerpt?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- Force authors to use Manual Excerpt in WordPress and multiple Manual Excerpts
- Excerpt displays the current page excerpt not one being pulled
- Trimming breaks up markup
- WordPress excerpt with formatting and allowing selected tags
- Add rel=lightbox to custom string
- multiple excerpt length and styles
- how to use the_excerpt for two post queries?
- WordPress Post Format If Statement?
- Excerpt Problems
- Function to shorten string without cutting off last word
- How to show excerpt field
- Get a raw value of excerpt
- Need to show post summary in sidebar
- Limited excerpt with readmore