Skip to content

[BUG]: HTML attributes/traits not escaped #912

@nojacko

Description

@nojacko

When double quotes are added to an attribute it breaks the HTML.

  1. https://jsfiddle.net/szLp8h4n/
  2. Drag in the link block.
  3. Click the link in the editor
  4. Go to "Component settings" panel
  5. Enter This is an "example" into title field.
  6. Click the view code icon.
  7. Invalid HTML is generated
<div class="c318">Hello World!!!</div>
<a title="This is an  "example"" class="c739">Link</a>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions