Post excerpt block removes added HTML in excerpt via block tools control #54129
Labels
[Block] Post Excerpt
Affects the Post Excerpt Block
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Description
When added some HTML in prost excerpt block, its not display that style in frontend. For example if we add post excerpt block and after it change excerpt text style using block toolbar settings. The added style will not visible in frontend.
Because,
$excerpt = wp_trim_words( $excerpt, $excerpt_length );
thiswp_trim_words
function remove html tags to play with excerpt length and return modified text after trim.This issue is also mention in the ticket - https://core.trac.wordpress.org/ticket/59270
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: