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

#   Showcarts view breaks HTML if filter applied

##

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

Less More

- Posts: 7
- Thank you received: 1
-
-

12 years 10 months ago [\#139675](#139675) by [ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")  *[Showcarts view breaks HTML if filter applied](/forum/27-checkout/864981-showcarts-view-breaks-html-if-filter-applied#139675 "-- url of the page with the problem -- :   www.sator.cz  (Not accessible for public yet.) -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.11 -- PHP version -- : 5.2.9 -- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m -- Error-message(debug-mod must be tuned on) -- : N/A  There is nice feature. Names of all items that passed filter are divided to part that exactly match filter and that does not. Part that matched filter is tagged by span tag with &quot;searchtext&quot; class. It means that name of cart in that view contains HTML tags. But this name is also inserted to title attribute with HTML tag:  This is code of cart/showcarts view;  This is a result when filter &quot;Tes&quot; applied:")* was created by *[ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")*

-- url of the page with the problem -- : [ www.sator.cz](http://www.sator.cz) (Not accessible for public yet.)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.11
-- PHP version -- : 5.2.9
-- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m
-- Error-message(debug-mod must be tuned on) -- : N/A

There is nice feature. Names of all items that passed filter are divided to part that exactly match filter and that does not. Part that matched filter is tagged by span tag with "searchtext" class. It means that name of cart in that view contains HTML tags. But this name is also inserted to title attribute with HTML tag:

This is code of cart/showcarts view; Code:

&lt;td data-title="&lt;?php echo JText::_( 'CART_PRODUCT_NAME' );?&gt;"&gt; &lt;a href="&lt;?php echo hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$cart-&gt;cart_id.'&amp;cart_type='.$cart_type); ?&gt;" title="&lt;?php echo $cart-&gt;cart_name;?&gt;"&gt;&lt;?php echo $cart-&gt;cart_name;?&gt;&lt;/a&gt; &lt;/td&gt;

This is a result when filter "Tes" applied: Code:

&lt;td data-title="Název zboží"&gt; &lt;a href="/index.php/cz/profile/cart-select/cart/showcart/cart_id-7/cart_type-cart" title="&amp;lt;span class=" searchtext"=""&gt;Test"&amp;gt; &lt;span class="searchtext"&gt;Tes&lt;/span&gt;t &lt;/a&gt; &lt;/td&gt;

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 10 months ago [\#139802](#139802) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Showcarts view breaks HTML if filter applied](/forum/27-checkout/864981-showcarts-view-breaks-html-if-filter-applied#139802 "-- url of the page with the problem -- :   www.sator.cz  (Not accessible for public yet.) -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.11 -- PHP version -- : 5.2.9 -- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m -- Error-message(debug-mod must be tuned on) -- : N/A  There is nice feature. Names of all items that passed filter are divided to part that exactly match filter and that does not. Part that matched filter is tagged by span tag with &quot;searchtext&quot; class. It means that name of cart in that view contains HTML tags. But this name is also inserted to title attribute with HTML tag:  This is code of cart/showcarts view;  This is a result when filter &quot;Tes&quot; applied:")*

Hi,

A link and an access to your website is welcome ![:)](/media/kunena/emoticons/3.png ":)")
It will help us to reproduce the problem on our end and then debug it.

How did you configure it, you have a module on the showcarts page ?

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

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

Less More

- Posts: 7
- Thank you received: 1
-
-

12 years 10 months ago -  12 years 10 months ago [\#140091](#140091) by [ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")  Replied by *[ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")* on topic *[Showcarts view breaks HTML if filter applied](/forum/27-checkout/864981-showcarts-view-breaks-html-if-filter-applied#140091 "-- url of the page with the problem -- :   www.sator.cz  (Not accessible for public yet.) -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.11 -- PHP version -- : 5.2.9 -- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m -- Error-message(debug-mod must be tuned on) -- : N/A  There is nice feature. Names of all items that passed filter are divided to part that exactly match filter and that does not. Part that matched filter is tagged by span tag with &quot;searchtext&quot; class. It means that name of cart in that view contains HTML tags. But this name is also inserted to title attribute with HTML tag:  This is code of cart/showcarts view;  This is a result when filter &quot;Tes&quot; applied:")*

On my page I have already fixed it by overriding view and replacing
Code:

title="&lt;?php echo $cart-&gt;cart_name;?&gt;"

with
Code:

title="&lt;?php echo strip_tags($cart-&gt;cart_name);?&gt;"

In my configuration menu item type "Cart listing" is associated with menu item (cart listin is opened in the content).

I have created account to access offline pages [ ](http://www.sator.cz)[ www.sator.cz](http://www.sator.cz).
User: hikashop
Password: hikashop

Menus are missing in english version yet. Try Czech one. Menu "Můj účet"&gt;"Vybrat košík".

Last edit: 12 years 10 months ago by [ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile").

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

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

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