mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
add test
This commit is contained in:
@@ -79,10 +79,10 @@ function sanitizeInline (html, options) {
|
||||
}
|
||||
}
|
||||
|
||||
if (selfClosing.indexOf(tag)) {
|
||||
return '<' + tag + attrs + ' />'
|
||||
} else {
|
||||
if (selfClosing.indexOf(tag) === -1) {
|
||||
return '<' + tag + attrs + '>'
|
||||
} else {
|
||||
return '<' + tag + attrs + ' />'
|
||||
}
|
||||
} else {
|
||||
// closing tag
|
||||
|
||||
Reference in New Issue
Block a user