Clean HTML

The plugin allows you to ensure that the document does not contain unwanted tags, xxs scripts and the like.

For example, you can explicitly specify which tags or attributes are allowed and which are not:

Jodit.make('#editor', {
cleanHTML: {
allowTags: {
p: true,
a: {
href: true
},
table: true,
tbody: true,
tr: true,
td: true,
th: false,
img: {
src: '1.png'
}
}
}
});

Plugin settings are under the namespace [[Config.cleanHTML]]

Classes

References

Functions

References

Re-exports isInlineBlock

Jodit PRO

If you like Jodit - try Jodit PRO