Skip to content

Commit

Permalink
Fix handling of < character
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Jul 2, 2021
1 parent d714b62 commit df3da5a
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 df3da5a

Please sign in to comment.