Skip to content

Commit

Permalink
Sanitize h1 (#7073)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Jan 4, 2024
1 parent 5bb8bb6 commit e3ead7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web/scripts/workers-site/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ class SEOHandlerBody {
if (!h1) {
return
}
const h1Tag = `<h1 id="audius-h1" style="position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;">${h1}</h1>`
const h1Tag = `<h1 id="audius-h1" style="position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;">${clean(
h1
)}</h1>`
element.prepend(h1Tag, { html: true })
}
}
Expand Down

0 comments on commit e3ead7f

Please sign in to comment.