Skip to content

Commit

Permalink
SirData RTD provider: use textContent instead of innerText
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed May 28, 2024
1 parent 2f7e2f7 commit 0076ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sirdataRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export function removePII(content) {
* @returns {Object} - The sanitized content
*/
export function sanitizeContent(content) {
if (content && content.documentElement.innerText && content.documentElement.innerText.length > 500) {
if (content && content.documentElement.textContent && content.documentElement.textContent.length > 500) {
// Reduce size by removing useless content
// Allowed tags
const allowedTags = [
Expand Down

0 comments on commit 0076ca7

Please sign in to comment.