cfpb / curriculum-review-tool

An interactive tool that allows a teacher to assess the merits of a financial education curriculum.
https://www.consumerfinance.gov/practitioner-resources/youth-financial-education/curriculum-review/
Creative Commons Zero v1.0 Universal
10 stars 14 forks source link

Remove uses of dangerouslySetInnerHTML #426

Closed mrclay closed 2 years ago

mrclay commented 2 years ago

This uses ReactNodes instead of HTML strings to allow removing uses of dangerouslySetInnerHTML. The existing usage was most likely safe due to being populated by constant strings, not user content, but standard React escaping is best practice anyway.

Changes

Checklist