I'm trying to get the html / inner content / text of all the script tags that are loaded on the page. Here is some sample code:
<script name="test1">
alert('hi');
</script>
<script src="https://example.com/js.js name="test2""></script>
When I include jQuery, and run the following, I can't seem to get access the content of the remote script:
alert( jQuery('script[name="test2"]').html() )
Any thoughts on why that is?