Use default options from sanitizeHtmlParams for sanitizeHtml()

Signed-off-by: Bastian <matrix@noxware.de>
This commit is contained in:
Bastian 2019-02-07 14:33:11 +01:00
parent 951f0fc816
commit 179f9a1943

View file

@ -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);
}