Open justintadlock opened 4 months ago
Currently, WordPress is stripping HTML from custom excerpts:
I managed to fix this with a very convoluted workaround in https://github.com/x3p0-dev/x3p0-ideas/commit/1e87fa2cf039def96b04e29523ee5a08f537556f. However, this is a bit of a hacky workaround.
Ideally, the WP HTML API would support replacing innerHTML. This would allow us to simply filter render_block_core/post-excerpt and replace the core-output excerpt with the excerpt that the user manually defined:
innerHTML
render_block_core/post-excerpt
Currently, WordPress is stripping HTML from custom excerpts:
I managed to fix this with a very convoluted workaround in https://github.com/x3p0-dev/x3p0-ideas/commit/1e87fa2cf039def96b04e29523ee5a08f537556f. However, this is a bit of a hacky workaround.
Ideally, the WP HTML API would support replacing
innerHTML
. This would allow us to simply filterrender_block_core/post-excerpt
and replace the core-output excerpt with the excerpt that the user manually defined: