Use default options from sanitizeHtmlParams for sanitizeHtml()
Signed-off-by: Bastian <matrix@noxware.de>
This commit is contained in:
parent
951f0fc816
commit
179f9a1943
1 changed files with 2 additions and 3 deletions
|
@ -539,9 +539,8 @@ export function linkifyElement(element, options = linkifyMatrix.options) {
|
|||
* Linkify the given string and sanitize the HTML afterwards.
|
||||
*
|
||||
* @param {string} dirtyHtml The HTML string to sanitize and linkify
|
||||
* @param {object} [sanitizeHtmlOptions] Optional settings for sanitize-html
|
||||
* @returns {string}
|
||||
*/
|
||||
export function linkifyAndSanitizeHtml(dirtyHtml, sanitizeHtmlOptions = undefined) {
|
||||
return sanitizeHtml(linkifyString(dirtyHtml), sanitizeHtmlOptions);
|
||||
export function linkifyAndSanitizeHtml(dirtyHtml) {
|
||||
return sanitizeHtml(linkifyString(dirtyHtml), sanitizeHtmlParams);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue