Skip to content

Commit

Permalink
new lint rule for Prebid 9 fix : use textContent instead of innerText (
Browse files Browse the repository at this point in the history
  • Loading branch information
nouchy committed May 29, 2024
1 parent 0f91aff commit e1b028f
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 e1b028f

Please sign in to comment.