3 ms·
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(some
by PhineasRex 6y ago
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.