[code] in classic block re-encode , & on every edit
-
Greetings,
This is a bit of an edge case. We’re using the classic editor block (within the block editor), and the logic that decides when to encode/decode contents doesn’t appear to cover this case correctly.
The linked page includes an example. The first (working) content on the page shows a simple example of html code that was added to the page using the SyntaxHighlighter Code block. The examples after that were all added by adding the Classic Block, then using various versions of the shortcode [code], [code lang="html"], and [sourcecode language="plain"]
No matter how many times I edit the page, the first example works flawlessly (thanks!!) but each time I've used a shortcode within the classic block, < > and & all get re-encoded into <, > and & every time the page is edited.
The page I need help with: [log in to see the link]
- The topic ‘[code] in classic block re-encode , & on every edit’ is closed to new replies.