[wp-trac] [WordPress Trac] #40958: force_balance_tags breaks Ninjaforms and probably other plugins that output html within js.
WordPress Trac
noreply at wordpress.org
Sun Sep 22 05:26:43 UTC 2024
#40958: force_balance_tags breaks Ninjaforms and probably other plugins that output
html within js.
--------------------------+---------------------------------
Reporter: programmin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.7.4
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration
--------------------------+---------------------------------
Comment (by dmsnell):
Does anyone have some example output before and after force-balancing the
tags? I've been exploring replacing the internal logic of
`force_balance_tags()` with the HTML API, which should resolve pretty much
every problem associated with it, but I want to verify that in this case,
that there's not something strange going on with the interplay of the HTML
produced by the shortcode.
https://github.com/WordPress/wordpress-develop/pull/7409
> Notice that some ending /spans, /is, and or /as are added before the end
script, breaking it. Seems to not be wp version dependent.
This is the part I'd love to see, since I don't have a test setup for
ninja forms, nor would I know if what I see is what you are seeing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40958#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list