[BUG]: HTML attributes/traits not escaped
Question
When double quotes are added to an attribute it breaks the HTML.
- https://jsfiddle.net/szLp8h4n/
- Drag in the link block.
- Click the link in the editor
- Go to "Component settings" panel
- Enter
This is an "example"intotitlefield. - Click the view code icon.
- Invalid HTML is generated
<div class="c318">Hello World!!!</div>
<a title="This is an "example"" class="c739">Link</a>
Answers (3)
Thanks for the catch James PRs are welcome
@nojacko I don't build files before the release so if you're using files from dist you're still using the old one
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1567
rte toolbar bug
Hello all, I am using the latest grapesjs stable version (40) and I noticed the following bug in the rich text editor: If the user drags an...
Issue #1579
Border Color Issue
@artf There is bug in the border color if you drag a button on the editor and paste color like rgb(255, 0, 0) in border color and select an...
Issue #563
Table <thead> and <tbody> tag gets Omitted
Hello, There is new issue with GrapesJS (maybe). I've created new component using bm.add() in which I've used a table element with <thead>...
Issue #2656
[BUG] Wrong position of toolbar when duplicate children component
Hi, you can check this example: https://codepen.io/abozhinov/pen/XWbqjEJ Steps to reproduce the problem:If components existing delete them...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.