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

#   RAW HTML now showing in WorldPay Checkout

##

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

Less More

- Posts: 173
- Thank you received: 8
-
-

4 years 10 months ago [\#338492](#338492) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338492 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")* was created by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")*

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.4
-- PHP version -- : 7.4.27
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay

Hi All,
Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?

Thanks
Ian
[ ![WorldPay.jpg](/forum/attachment/54159) ](/forum/attachment/54159 "WorldPay.jpg")

- [ ![WorldPay.jpg](/forum/attachment/54159) ](/forum/attachment/54159 "WorldPay.jpg") [ ](/forum/attachment/54159?download=1 "WorldPay.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDM3ODUtcmF3LWh0bWwtbm93LXNob3dpbmctaW4td29ybGRwYXktY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

4 years 10 months ago [\#338493](#338493) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338493 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")*

Hi,

That's a bug in the WorldPay plugin that has always been there. Thanks for reporting it.
It only happens when you have products with characteristics/variants in the order and it is not linked to the update.
You can fix that by changing the line: Code:

$vars["C_item_name_".$i]=substr($product-&gt;order_product_name,0,127);

to: Code:

$vars["C_item_name_".$i]=substr(strip_tags($product-&gt;order_product_name),0,127);

in the file plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php
We'll add that on our end too.

The following user(s) said Thank You: [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

4 years 10 months ago [\#338503](#338503) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338503 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")*

Hi Nicolas,
Made the mod, but no change?
I've set the plugin to show only the company and price at the moment.

Thanks
Ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDM3ODUtcmF3LWh0bWwtbm93LXNob3dpbmctaW4td29ybGRwYXktY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

4 years 10 months ago -  4 years 10 months ago [\#338506](#338506) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338506 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")*

Hi,

I don't see why it wouldn't work.
Could you provide the URL of that product with the issue and a FTP access via our contact form so that we can check the situation ?
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Last edit: 4 years 10 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDM3ODUtcmF3LWh0bWwtbm93LXNob3dpbmctaW4td29ybGRwYXktY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

4 years 10 months ago [\#338528](#338528) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338528 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")*

Hi,

Thanks. I found the problem.
There is another line to change.
You need to change: Code:

$vars['desc'] = substr($product-&gt;order_product_name, 0, 255);

to: Code:

$vars['desc'] = substr(strip_tags($product-&gt;order_product_name), 0, 255);

in that same file and it will work.

The following user(s) said Thank You: [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

4 years 10 months ago [\#338548](#338548) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338548 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")*

All working now, thanks.

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDM3ODUtcmF3LWh0bWwtbm93LXNob3dpbmctaW4td29ybGRwYXktY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

4 years 10 months ago [\#338559](#338559) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[RAW HTML now showing in WorldPay Checkout](/forum/29-payment-methods/903785-raw-html-now-showing-in-worldpay-checkout#338559 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 7.4.27 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : raw HTML showing in WorldPay  Hi All, Just upgraded to 4.4.5 from 4.4.4 and going through the test scenario discovered the description is displaying some raw HTML in the WorldPay Description box?  Thanks Ian")*

Hi,

Thanks for the feedback. We'll add these changes on our end too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDM3ODUtcmF3LWh0bWwtbm93LXNob3dpbmctaW4td29ybGRwYXktY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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.066 seconds

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