x3p0-dev / x3p0-ideas

A new WordPress theme.
GNU General Public License v3.0
56 stars 4 forks source link

[Post Excerpt] Allow HTML in custom excerpts #18

Open justintadlock opened 4 months ago

justintadlock commented 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: