Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Post Excerpt] Allow HTML in custom excerpts #18

Open
justintadlock opened this issue Jul 18, 2024 · 0 comments
Open

[Post Excerpt] Allow HTML in custom excerpts #18

justintadlock opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
🧪 Enhancement Spinning up new features in the lab. WordPress Issue Whatcha doin' to me WordPress/Gutenberg?

Comments

@justintadlock
Copy link
Contributor

Currently, WordPress is stripping HTML from custom excerpts:

I managed to fix this with a very convoluted workaround in 1e87fa2. 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:

@justintadlock justintadlock added 🧪 Enhancement Spinning up new features in the lab. WordPress Issue Whatcha doin' to me WordPress/Gutenberg? labels Jul 18, 2024
@justintadlock justintadlock self-assigned this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧪 Enhancement Spinning up new features in the lab. WordPress Issue Whatcha doin' to me WordPress/Gutenberg?
Projects
None yet
Development

No branches or pull requests

1 participant