the browser can already do this.
```
var _ = document.createElement("div");
_.innerText = str;
return _.innerHTML
```