Answer the question
In order to leave comments, you need to log in
How to display unprocessed product description in opencart?
Good afternoon.
In the product card, in the "quick view" and in the category, a description of the product is displayed, previously cleaned from html tags. Thus, for example, an unlabeled list with ingredients is merged into one line.
In the product card, I solved this problem by simply replacing the operator
echo utf8_substr(strip_tags(html_entity_decode($description, ENT_QUOTES, 'UTF-8')), 0, 199)
on echo $description
. $data['description'] = utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, 250);
$data['descriptionraw'] = $product_info['description'];
<li>угорь
, displayed in the browser as )
I want to ask: how to display the raw, raw value of the "product description" containing the html code?<li>угорь
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question