google / react-schemaorg

Type-checked Schema.org JSON-LD for React
Apache License 2.0
487 stars 19 forks source link

Update json-ld.tsx DOM text reinterpreted as HTML #55

Open Shivam7-1 opened 6 months ago

Shivam7-1 commented 6 months ago

By using innerText, it will avoid the risk of HTML injection, as these properties automatically escape any HTML special characters in the provided text. This helps prevent cross-site scripting (XSS) vulnerabilities by treating the input as plain text rather than interpreted HTML.

Shivam7-1 commented 6 months ago

Hi @Eyas Could you please Review This PR Thanks

Shivam7-1 commented 6 months ago

Hi @Eyas Could you please Review This PR Thanks

Shivam7-1 commented 6 months ago

Hi @Eyas Could you please Review This PR Thanks

Shivam7-1 commented 6 months ago

Hi @Eyas Could you please Review This PR Thanks