Hey Stack'er
I want to crop a part of an HTML markup with Inline-JavaScript included.
Example:
<div id="foo">
<div id="bar">
<script>
..some function..
</script>
<p>...</p>
</div>
</div>
With the jQuery functions find() and load() you are not able to copy the whole markup WITH the JS-Snippet includet. The result looks like:
<div id="foo">
<div id="bar">
<p>...</p>
</div>
</div>
The Script is stripped off. In the jQuery Community they say its supposed to be like this, because of risk of Script Injection.
But how is it possible anyway to realize this?
Best wishes chris