Re:Names are not type safety
by PhineasRex on Monday November 02, 2020 @09:32AM
(#24968474)
So in the example where you're constructing HTML, you would never use strings to represent your HTML. So your template might look something like
```
P(Text(someUserText), I(someItalicized))
```
This is essentially how React.js works; you don't need to tag strings as safe or unsafe because strings are never treated as HTML, only constructed HTML values (via JSX) are treated as HTML.
This is essentially how React.js works; you don't need to tag strings as safe or unsafe because strings are never treated as HTML, only constructed HTML values (via JSX) are treated as HTML.