diff --git a/js/lib/utils/string.js b/js/lib/utils/string.js index 1f68e3892..d8d11d257 100644 --- a/js/lib/utils/string.js +++ b/js/lib/utils/string.js @@ -41,7 +41,12 @@ export function getPlainContent(string) { return dom.text(); } -getPlainContent.removeSelectors = ['blockquote']; +/** + * An array of DOM selectors to remove when getting plain content. + * + * @type {Array} + */ +getPlainContent.removeSelectors = ['blockquote', 'script']; /** * Make a string's first character uppercase.