From 90411ba684bb939f6710f8446b3aad0325e42df9 Mon Sep 17 00:00:00 2001 From: Chin Leung Date: Fri, 2 Jul 2021 09:42:48 -0400 Subject: [PATCH] Fix regex --- src/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() );