mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 01:01:45 +00:00
Use default options from sanitizeHtmlParams for sanitizeHtml()
Signed-off-by: Bastian <matrix@noxware.de>
This commit is contained in:
+2
-3
@@ -539,9 +539,8 @@ export function linkifyElement(element, options = linkifyMatrix.options) {
|
|||||||
* Linkify the given string and sanitize the HTML afterwards.
|
* Linkify the given string and sanitize the HTML afterwards.
|
||||||
*
|
*
|
||||||
* @param {string} dirtyHtml The HTML string to sanitize and linkify
|
* @param {string} dirtyHtml The HTML string to sanitize and linkify
|
||||||
* @param {object} [sanitizeHtmlOptions] Optional settings for sanitize-html
|
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
export function linkifyAndSanitizeHtml(dirtyHtml, sanitizeHtmlOptions = undefined) {
|
export function linkifyAndSanitizeHtml(dirtyHtml) {
|
||||||
return sanitizeHtml(linkifyString(dirtyHtml), sanitizeHtmlOptions);
|
return sanitizeHtml(linkifyString(dirtyHtml), sanitizeHtmlParams);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user