[Skip to main content](#vessel-content)

#   Product description shows raw HTML

##

- **[TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")**
- [![TSCWG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37477-tscwg "View TSCWG's Profile") Topic Author
- [ Offline](/forum/user/37477-tscwg)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 6 months ago [\#203500](#203500) by [TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")  *[Product description shows raw HTML](/forum/26-product-category-display/877289-product-description-shows-raw-html#203500 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : all  I just purchased HikaShop and did the products -&gt; import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.  How do I change this to show the formatted or plain text descriptions?")* was created by *[TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.22
-- Browser(s) name and version -- : all

I just purchased HikaShop and did the products -&gt; import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.

How do I change this to show the formatted or plain text descriptions?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcyODktcHJvZHVjdC1kZXNjcmlwdGlvbi1zaG93cy1yYXctaHRtbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

11 years 6 months ago [\#203502](#203502) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product description shows raw HTML](/forum/26-product-category-display/877289-product-description-shows-raw-html#203502 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : all  I just purchased HikaShop and did the products -&gt; import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.  How do I change this to show the formatted or plain text descriptions?")*

Hi,

I don't see why that would happen, but you can edit the file "show_default" via the menu Display&gt;views and change the code :
$this-&gt;element-&gt;product_description
to :
html_entity_decode($this-&gt;element-&gt;product_description)
which should fix the issue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcyODktcHJvZHVjdC1kZXNjcmlwdGlvbi1zaG93cy1yYXctaHRtbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")**
- [![TSCWG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37477-tscwg "View TSCWG's Profile") Topic Author
- [ Offline](/forum/user/37477-tscwg)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 6 months ago [\#203552](#203552) by [TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")  Replied by *[TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")* on topic *[Product description shows raw HTML](/forum/26-product-category-display/877289-product-description-shows-raw-html#203552 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : all  I just purchased HikaShop and did the products -&gt; import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.  How do I change this to show the formatted or plain text descriptions?")*

Hello, thanks for the response. Unfortunately, this:

$this-&gt;element-&gt;product_description

does not appear in that file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcyODktcHJvZHVjdC1kZXNjcmlwdGlvbi1zaG93cy1yYXctaHRtbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#203554](#203554) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product description shows raw HTML](/forum/26-product-category-display/877289-product-description-shows-raw-html#203554 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : all  I just purchased HikaShop and did the products -&gt; import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.  How do I change this to show the formatted or plain text descriptions?")*

Hi,

The "$this-&gt;element-&gt;product_description" is in the view "product &#124; show_default" ; there is no other way to display the product description in the product page.
Here the full line that you can find in the view Code:

echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcyODktcHJvZHVjdC1kZXNjcmlwdGlvbi1zaG93cy1yYXctaHRtbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")**
- [![TSCWG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37477-tscwg "View TSCWG's Profile") Topic Author
- [ Offline](/forum/user/37477-tscwg)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 6 months ago [\#203602](#203602) by [TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")  Replied by *[TSCWG](/forum/user/37477-tscwg "View TSCWG's Profile")* on topic *[Product description shows raw HTML](/forum/26-product-category-display/877289-product-description-shows-raw-html#203602 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : all  I just purchased HikaShop and did the products -&gt; import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.  How do I change this to show the formatted or plain text descriptions?")*

Ah, thanks. The problem was that the usual &lt;control-F&gt; in a browser to do a search doesn't find anything in that window. I searched manually, found it, fixed it.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcyODktcHJvZHVjdC1kZXNjcmlwdGlvbi1zaG93cy1yYXctaHRtbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
