You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Use default options from sanitizeHtmlParams for sanitizeHtml()
Signed-off-by: Bastian <matrix@noxware.de>
This commit is contained in:
@@ -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