Artem A
Forum Replies Created
-
Forum: Plugins
In reply to: [Prismatic] HTML tags are stripped out instead of being escapedHi Jeff,
we tested new plugin version (2.6) and the issue is still there. How to reproduce it:
0. Select “Highlight.js” as the library to use
1. Create a new post with Gutenberg Editor on WordPress 5.5
2. Insert new Prismatic block into it
3. Put the following code into Prismatic block:<dependencies>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>optional-project</artifactId>
<version>1.0</version>
<optional>true</optional>
</dependency>
</dependencies>4. Publish the post and check the result on front end. XML tags would be stripped.
Screenshots: https://imgur.com/a/jpe1AFS
I’ve checked and there is corresponding line in the “buttons-highlight.js” ( #105 ):
ed.insertContent(‘
<code class="language-'+ code.language +'">'+ code.snippet + '
‘);
we solved this issue on our site by replacing this line with fixed version:
ed.insertContent(‘
<code class="language-'+ code.language +'">'+ tinymce.DOM.encode(code.snippet) + '
‘);
Forum: Plugins
In reply to: [Prismatic] HTML tags are stripped out instead of being escapedHi, I want to clarify that we are using post editor in classic mode (via “Classic editor” plugin) on WP 5.4.2
Here are screenshots of the edit process:
http://staging11.baeldung.com/Selection_037.png
http://staging11.baeldung.com/Selection_038.png
http://staging11.baeldung.com/Selection_039.pngForum: Plugins
In reply to: [Prismatic] HTML tags are stripped out instead of being escapedUpdate:
I’ve tested this issue in WP 5.2.2 with default theme and no plugins, and HTML was escaped and displayed properly. But in WP 5.4.2 (with default theme and no plugins) HTML is not escaped.