|
@@ 313-316 (lines=4) @@
|
| 310 |
|
|
| 311 |
|
if ( preg_match( '#<script[^>]*src=("|\')([^>]*)("|\')#Usmi', $tag, $source ) ) { |
| 312 |
|
// non-inline script. |
| 313 |
|
if ( $this->isremovable( $tag, $this->jsremovables ) ) { |
| 314 |
|
$this->content = str_replace( $tag, '', $this->content ); |
| 315 |
|
continue; |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
$orig_tag = null; |
| 319 |
|
$url = current( explode( '?', $source[2], 2 ) ); |
|
@@ 374-377 (lines=4) @@
|
| 371 |
|
} |
| 372 |
|
} else { |
| 373 |
|
// Inline script. |
| 374 |
|
if ( $this->isremovable( $tag, $this->jsremovables ) ) { |
| 375 |
|
$this->content = str_replace( $tag, '', $this->content ); |
| 376 |
|
continue; |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
// unhide comments, as javascript may be wrapped in comment-tags for old times' sake. |
| 380 |
|
$tag = $this->restore_comments( $tag ); |