From 536795b2b3b565d9efe81a583206c1c4f39a580e Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:42:11 +0400 Subject: [PATCH] do not modify review text in constructor --- src/models/Review.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Review.php b/src/models/Review.php index 3329359..7b3c6f2 100644 --- a/src/models/Review.php +++ b/src/models/Review.php @@ -36,7 +36,7 @@ public function __construct( $this->user_id = $user_id; $this->product_id = $product_id; $this->parent_review_id = $parent_review_id; - $this->text = htmlspecialchars_decode(strip_tags($text)); + $this->text = $text; $this->rating = $rating; $this->date = $date; }