Skip to content

Commit 226041e

Browse files
committed
removed commented code
1 parent cae0b44 commit 226041e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Request.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ public function getHtmlContent()
180180
$content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">', $content);
181181
}
182182

183-
//Remove all script elements, CDATA sections and comments (thanks https://github.com/jasny)
184-
//$content = preg_replace(['%<!--(?:[^-]++|-)*?-->|<!\[CDATA\[(?:[^\]]++|\])*?\]\]>%si', '%<script\b(?:"(?:[^"\\\\]++|\\\\.)*+"|\'(?:[^\'\\\\]++|\\\\.)*+\'|[^>"\']++)*>(?:[^<]++|<)*?</\s*script\s*>%si'], '', $content);
185-
186183
$this->htmlContent->loadHTML($content);
187184
libxml_use_internal_errors($errors);
188185
} catch (\Exception $E) {

0 commit comments

Comments
 (0)