I am replacing some script head that refers to a specific widget. I want to find all the nodes related to this widget located between comments. In addition, I want to easily remove any code associated with the specified widgets (including the start and end comments.
The insert and remote code will look like this:
<script src="Widgets/jquery.somecode.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('.someid).dothis({parameter, avatar_size: 48, count: 6}); }); </script> <link href="Widgets/jquery.somecode.css" media="all" rel="stylesheet" type="text/css"/>
steve
source share