Single quotes are rewritten as quotes in HTML block and Shortcode blocks #33813
Labels
[Block] HTML
Affects the the HTML Block
[Feature] Saving
Related to saving functionality
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Type] Bug
An existing feature does not function as intended
Description
In some use cases one might need to use single quotes instead of quotes. It could be editorial (this bug report form suggests step by step instructions with
1. Go to '...'
) as one example. Or it could be technical, such as for use in shortcodes.Originally reported here, the following shortcode is broken on save, as the single quotes inside the data attribute are rewritten to quotes:
This is an issue both in the HTML block, and the Shortcode blocks:
Arguably neither block should rewrite/beautify their contents.
Step-by-step reproduction instructions
The reload is necessary for the editor to reflect the saved content.
Expected Behavior
The single quote should stay intact.
Current Behavior
Observe that the content of the shortcode has been edited to replace the single quotes.
The text was updated successfully, but these errors were encountered: