@royaloperahouse/chord 2.4.5-b-chord-development → 2.4.5-c-chord-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7396,11 +7396,9 @@ var truncateHtmlString = function truncateHtmlString(htmlString, resultLength, a
|
|
|
7396
7396
|
addDots = false;
|
|
7397
7397
|
}
|
|
7398
7398
|
|
|
7399
|
-
var
|
|
7400
|
-
var doc = parser.parseFromString(htmlString, 'text/html');
|
|
7401
|
-
var textContent = doc.body.textContent;
|
|
7399
|
+
var textContent = stripAllHtmlTags(htmlString);
|
|
7402
7400
|
|
|
7403
|
-
if (textContent
|
|
7401
|
+
if (textContent.length <= resultLength) {
|
|
7404
7402
|
return htmlString;
|
|
7405
7403
|
}
|
|
7406
7404
|
|