@@ 157-160 (lines=4) @@ | ||
154 | ||
155 | if ( preg_match( '#<script[^>]*src=("|\')([^>]*)("|\')#Usmi', $tag, $source ) ) { |
|
156 | // non-inline script. |
|
157 | if ( $this->isremovable($tag, $this->jsremovables) ) { |
|
158 | $this->content = str_replace( $tag, '', $this->content ); |
|
159 | continue; |
|
160 | } |
|
161 | ||
162 | $origTag = null; |
|
163 | $url = current( explode( '?', $source[2], 2 ) ); |
|
@@ 215-218 (lines=4) @@ | ||
212 | } |
|
213 | } else { |
|
214 | // Inline script. |
|
215 | if ( $this->isremovable($tag, $this->jsremovables) ) { |
|
216 | $this->content = str_replace( $tag, '', $this->content ); |
|
217 | continue; |
|
218 | } |
|
219 | ||
220 | // unhide comments, as javascript may be wrapped in comment-tags for old times' sake. |
|
221 | $tag = $this->restore_comments($tag); |