Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Jul 2, 2021
1 parent df3da5a commit 90411ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(ClientResponse $response)
protected function cleanedBody(): string
{
return preg_replace(
['/&(?!#?[a-z0-9]+;)/', '/<(?!(\?\/)?[a-z0-9]+)/'],
['/&(?!#?[a-z0-9]+;)/', '/<(?!(\?|\/)?[a-z0-9]+)/'],
['&amp;', '&lt;'],
$this->response->body()
);
Expand Down

0 comments on commit 90411ba

Please sign in to comment.