wpautop is applied to server-side rendered block output #2736
Labels
Framework
Issues related to broader framework topics, especially as it relates to javascript
[Type] Bug
An existing feature does not function as intended
While working on creating a block for the Jetpack subscription functionality, I stumbled upon an issue: if the output from the
render_callback
function contains inline JS (like this),wpautop
will add paragraphs to the JS code so it won't work:If I return early from
wpautop
, no<p>
s are added.#gutenbug
The text was updated successfully, but these errors were encountered: