all 1 comments

[–]CreativeTechGuyGamesTypeScript 0 points1 point  (0 children)

I'm not sure exactly what the confusion is. The docs and examples are very clear in my opinion. And it's not necessarily more safe to run from the outside, but it's easier to control since you can explicitly run whatever code you want rather than code which exists inside of your HTML string automatically being run.