mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-28 16:01:32 +08:00
extend html tags which are kept on import
https://github.com/TriliumNext/Notes/issues/567 this is the easy method, just add the tags to core, not attempting to read the list from a user configurable location. The addition is clearly marked in code.
This commit is contained in:
parent
3ff75b14e9
commit
9ef899eec5
@ -32,7 +32,11 @@ function sanitize(dirtyHtml: string) {
|
|||||||
'figure', 'figcaption', 'span', 'label', 'input', 'details', 'summary', 'address', 'aside', 'footer',
|
'figure', 'figcaption', 'span', 'label', 'input', 'details', 'summary', 'address', 'aside', 'footer',
|
||||||
'header', 'hgroup', 'main', 'nav', 'dl', 'dt', 'menu', 'bdi', 'bdo', 'dfn', 'kbd', 'mark', 'q', 'time',
|
'header', 'hgroup', 'main', 'nav', 'dl', 'dt', 'menu', 'bdi', 'bdo', 'dfn', 'kbd', 'mark', 'q', 'time',
|
||||||
'var', 'wbr', 'area', 'map', 'track', 'video', 'audio', 'picture', 'del', 'ins',
|
'var', 'wbr', 'area', 'map', 'track', 'video', 'audio', 'picture', 'del', 'ins',
|
||||||
'en-media' // for ENEX import
|
'en-media', // for ENEX import
|
||||||
|
// Additional tags (https://github.com/TriliumNext/Notes/issues/567)
|
||||||
|
'acronym', 'article', 'big', 'button', 'cite', 'col', 'colgroup', 'data', 'dd',
|
||||||
|
'fieldset', 'form', 'legend', 'meter', 'noscript', 'option', 'progress', 'rp',
|
||||||
|
'samp', 'small', 'sub', 'sup', 'template', 'textarea', 'tt'
|
||||||
],
|
],
|
||||||
allowedAttributes: {
|
allowedAttributes: {
|
||||||
'*': [ 'class', 'style', 'title', 'src', 'href', 'hash', 'disabled', 'align', 'alt', 'center', 'data-*' ]
|
'*': [ 'class', 'style', 'title', 'src', 'href', 'hash', 'disabled', 'align', 'alt', 'center', 'data-*' ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user