Skip to content

Commit

Permalink
SirData RTD provider: use textContent instead of innerText (#11595)
Browse files Browse the repository at this point in the history
Co-authored-by: Demetrio Girardi <dgirardi@prebid.org>
  • Loading branch information
patmmccann and dgirardi authored May 28, 2024
1 parent a9cda01 commit 76a43c7
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 76a43c7

Please sign in to comment.