Skip to content

Commit

Permalink
Merge pull request #101 from j0k3r/ng-controller
Browse files Browse the repository at this point in the history
ng-controller should not trigger escaped fragment
  • Loading branch information
j0k3r authored May 11, 2017
2 parents 3db9a94 + 15a530e commit a8501be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Extractor/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function __construct(Client $client, $config = [], LoggerInterface $logge
'<meta name="fragment" content="!"',
"<meta content='!' name='fragment'",
'<meta content="!" name="fragment"',
' ng-controller=',
],
// timeout of the request in seconds
'timeout' => 10,
Expand Down
5 changes: 0 additions & 5 deletions tests/Extractor/HttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ public function dataForMetaRefresh()
'<html><meta name="fragment" content="!"></html>',
'http://www.bernama.com/bernama/v6/newsindex.php?id=943513',
],
[
'http://fr.wikipedia.org/wiki/Copyright',
'<html><body ng-controller="MyCtrl"></body></html>',
'http://www.bernama.com/bernama/v6/newsindex.php?id=943513',
],
];
}

Expand Down

0 comments on commit a8501be

Please sign in to comment.