Author Topic: Single quotes (Apostrophe) in custom SEO title stored as '  (Read 519 times)

sirius

  • Beginner
  • *
  • Posts: 48
    • OCTeam
  • VirtueMart Version: 3.8.6
Single quotes (Apostrophe) in custom SEO title stored as '
« on: September 29, 2020, 15:12:55 pm »
Hello,

when we use single quote (') for the custom titles of categories or products, they are stored in DB as ' so the title show ' instead of single quote.
Should be corrected.

But does anyone have the same behaviour on this ?
thanks  :)
J3.9.23 | PHP7.4.12 + APC + Opcode

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 817
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Single quotes (Apostrophe) in custom SEO title stored as '
« Reply #1 on: September 29, 2020, 16:09:19 pm »
Yes,

we use override in template and convert html entities in title to normal text.

But primary we learn admin - don't use non-standard char in title :D
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

sirius

  • Beginner
  • *
  • Posts: 48
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: Single quotes (Apostrophe) in custom SEO title stored as '
« Reply #2 on: October 07, 2020, 20:09:25 pm »
Thanks, I know that.

But this is a standard char, only difference is that you must enclosed it in double quotes nor escape with backslash if it could be interpreted as a code.
I mean everybody use ' Who really use ’ in titles ?

And Joomla itself do not have this bug, and virtuemart standard title do not have it too.
So why is virtuemart's custom title not treated the same?

Even if it is saved as an html entity, on display the entity should be interpreted and not literally displayed.
So I will check the template again just in case.  ::)
J3.9.23 | PHP7.4.12 + APC + Opcode

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3700
  • using Matomo instead of Google Analytics
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

sirius

  • Beginner
  • *
  • Posts: 48
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: Single quotes (Apostrophe) in custom SEO title stored as '
« Reply #4 on: October 19, 2020, 19:50:13 pm »
Thanks jjk
that's also the case when you set a title to a custom field
J3.9.23 | PHP7.4.12 + APC + Opcode