Skip to content

[Bug] v2.20.0 sanitises by default #1631

@dave5

Description

@dave5

The output of v2.20.0 has html tags removed by default. This does not happen with 2.19.3.

Steps to reproduce:

  1. Use example.html and set script for editor to <script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>

  2. Format some of text using basic HTML:

html 2 20 0

  1. click 'editor.save()' button to generate JSON:

json 2 20 0

  1. revert script for editor to <script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@2.19.3"></script>

  2. Format some of text using basic HTML:

html 2 19 3

  1. click 'editor.save()' button to generate JSON:

json 2 19 3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions