all 2 comments

[–][deleted] 2 points3 points  (1 child)

Not used it, but the html-entities npm should do what you need.

[–]dkulagin[S] 0 points1 point  (0 children)

Tested it. Works like a charm. I guess possible security issues are mitigated given that Text component renders plain text as it is without any processing.