Why does the custom HTML block not preserve the HTML characters?
For example it seems that the plain single-quote character '
(#x27;
) is converted to the right ones ’
(#8217;
) in the HTML page output. I understand the reason for this in regular Gutenberg blocks, but why does it still need to be done in the custom HTML block? I enable troubleshooting mode and use the Twenty Twenty-One theme and it's still converting.
Here are the different between the input methods:
pParagraph block then converted to html: #8216;/p
Custom HTML block: #8216;
pre class=wp-block-preformattedPreformatted block: '/pre
pre class=wp-block-codecodeCode block: '/code/pre
preClassic block with preformatted style: '/pre
My goal is to preserve the characters so that I can make inputs for Cypher. A piece of JS is in the post to handle this input.
Topic block-editor htmlspecialchars-decode troubleshooting html-editor Wordpress
Category Web