Any idea why the piece of code below does not add the script element to the DOM?
var code = \"\"; $(\"#someElement\").append(cod
Just create an element by parsing it with jQuery.
Working example: https://plnkr.co/edit/V2FE28Q2eBrJoJ6PUEBz