Custom HTML with <script> incorrectly encodes & character #13186
Labels
[Block] HTML
Affects the the HTML Block
Needs Testing
Needs further testing to be confirmed.
[Type] WP Core Ticket
Requires an upstream change from WordPress. Core Trac ticket should be linked.
Describe the bug
If the javascript code in a <script> block contains an
&
operator, it will be converted to&
, which browser flags as a syntax error. The script will not work.I am using WP 5.0.2, Gutenberg updated Jan 3, 2019 (don't know where to find the version), hosted on easyWP.
Example:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect no syntax errors. The script should be rendered without any encoding of characters.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: