Earlier quoted context omitted.
Honest question: How is React/vue/etc. different in this regard?
React is pure JS, no string parsing is involved at runtime (JSX is just function calls [1]). Vue has its own templating language that gets compiled to function calls that are very similar to React’s [2]. I have my fair share of criticisms against Vue (as any templating system, it’s quite inconsistent[3]). I don’t think any of them just dump string blobs via innerHtml. And I doubt any of them parse strings with regexp…
Why does this matter? React still eventually compiles down to DOM operations whether that be innerHTML or XML modifications.