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

#   Special characters conversion in custom fields

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

9 years 2 months ago [\#275565](#275565) by [slavab](/forum/user/48945-slavab "View slavab's Profile")  *[Special characters conversion in custom fields](/forum/3-bug-report/891445-special-characters-conversion-in-custom-fields#275565 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Firefox for Ubuntu 54.0 -- Error-message(debug-mod must be tuned on) -- : No specific error message.  I made several custom fields for product characteristics. One of them is screen size in inches. When I put there something like: 5.0&quot; 1280х720px the quotation mark after the five is converted into &quot; on save. Well, It is ok. But the next time I save the product the &quot; is converted into &amp;quot; which becomes &amp;&amp;quot; on the next save and so on.")* was created by *[slavab](/forum/user/48945-slavab "View slavab's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.4
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Firefox for Ubuntu 54.0
-- Error-message(debug-mod must be tuned on) -- : No specific error message.

I made several custom fields for product characteristics. One of them is screen size in inches. When I put there something like: 5.0" 1280х720px the quotation mark after the five is converted into &amp;quot; on save. Well, It is ok. But the next time I save the product the &amp;quot; is converted into &amp;amp;quot; which becomes &amp;amp;&amp;amp;quot; on the next save and so on.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTE0NDUtc3BlY2lhbC1jaGFyYWN0ZXJzLWNvbnZlcnNpb24taW4tY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

9 years 2 months ago [\#275568](#275568) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Special characters conversion in custom fields](/forum/3-bug-report/891445-special-characters-conversion-in-custom-fields#275568 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Firefox for Ubuntu 54.0 -- Error-message(debug-mod must be tuned on) -- : No specific error message.  I made several custom fields for product characteristics. One of them is screen size in inches. When I put there something like: 5.0&quot; 1280х720px the quotation mark after the five is converted into &quot; on save. Well, It is ok. But the next time I save the product the &quot; is converted into &amp;quot; which becomes &amp;&amp;quot; on the next save and so on.")*

Hi,

Change the line: Code:

return '&lt;input id="'.$this-&gt;prefix.@$field-&gt;field_namekey.$this-&gt;suffix.'"'.$size.$js.' '.$options.' type="'.$this-&gt;type.'" name="'.$map.'" value="'.htmlentities($value, ENT_COMPAT, 'UTF-8').'" /&gt;';

to:
Code:

return '&lt;input id="'.$this-&gt;prefix.@$field-&gt;field_namekey.$this-&gt;suffix.'"'.$size.$js.' '.$options.' type="'.$this-&gt;type.'" name="'.$map.'" value="'.$value.'" /&gt;';

in the file administrator/components/com_hikashop/classes/field.php in order to fix the behavior. We'll add that patch on our end with the next version.
Also, you might have to turn off the "input filtering" setting of the custom field.

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

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

[](#top)
