diff --git a/src/Http/Response.php b/src/Http/Response.php index 5340a78..21fcf44 100644 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -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]+)/'], ['&', '<'], $this->response->body() );