Pure elegant javascript:
.... <span data-value="simple"></span> ....
<script> var data = { simple: gen_simple(), .... } for (var i of document.querySelectorAll('[data-value]')) { i.innerHTML = data[i.getAttribute('data-value')]; } <script>
Php infected javascript:
.... <script>document.write(gen_simple())</script> ....
plus if in 'I was never here' mode:
.... <script> for (var i of document.querySelectorAll('script')) i.parentNode.removeChild(i); </script>
done_