Skip to content

Commit

Permalink
do not modify review text in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Apr 19, 2024
1 parent b1f3049 commit 536795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 536795b

Please sign in to comment.