Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Apostrophe in meta description.

    ZC v1.5.8a (vanilla)

    Adding an apostrophe to a categories meta description in Admin adds an escape backslash before it

    HTML Code:
    Simon's category
    becomes

    HTML Code:
    Simon\'s category
    after making a subsequent edit to the meta fields it becomes

    HTML Code:
    Simon\\\'s
    and so on.

    Using & # 3 9 ; (no spaces) as the apostrophe gives

    HTML Code:
    Simon& # 3 9 ;s (no spaces)
    I wonder if this is a bug as a ZC v1.5.6c install does not exhibit this behaviour.
    Simon

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,520
    Plugin Contributions
    88

    Default Re: Apostrophe in meta description.

    I'd go for "Yes, it's a bug".

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: Apostrophe in meta description.

    Quote Originally Posted by lat9 View Post
    I'd go for "Yes, it's a bug".
    Ok, I'll raise an issue.
    Simon

  4. #4
    Join Date
    Apr 2011
    Posts
    383
    Plugin Contributions
    0

    Default Re: Apostrophe in meta description.

    Quote Originally Posted by simon1066 View Post
    Ok, I'll raise an issue.
    I understand this is an older post but was the backslash issue ever resolved?

    I am encountering the same issue on a ZC 1.5.7 while adding apostrophe in meta title, description or kewords.

    Any way to avoid it except for using '?

    Thank you

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: Apostrophe in meta description.

    'raise an issue' means an issue was raised on GitHub. @drbyte links to the resolution at the end of

    https://github.com/zencart/zencart/issues/5735

    (which I found by searching among the issues for 'apostrophe')
    Last edited by simon1066; 27 Jan 2024 at 10:23 AM.
    Simon

  6. #6
    Join Date
    Apr 2011
    Posts
    383
    Plugin Contributions
    0

    Default Re: Apostrophe in meta description.

    Thank you Simon. When it comes to GitHub, i am lost on the way it works and slowly getting a hang of it.

    Thanks to your direct link to the issue discussion ,i was able to apply the changes.

  7. #7
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: Apostrophe in meta description.

    I still have to remind myself to check GitHub for a solution, before getting my hands dirty!
    Simon

 

 

Similar Threads

  1. v157 EZ pages - meta keywords and meta description on Google Live Test
    By shags38 in forum General Questions
    Replies: 1
    Last Post: 14 Apr 2023, 12:04 PM
  2. v151 apostrophe ' in meta title - is there a fix?
    By shags38 in forum General Questions
    Replies: 2
    Last Post: 15 Mar 2017, 11:46 PM
  3. Replies: 2
    Last Post: 10 Mar 2010, 06:45 PM
  4. Apostrophe doubling in Product Description
    By pandamain in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Oct 2008, 02:00 AM
  5. Apostrophe's in Product Description = Invalid XML
    By Jeff_Mash in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 19 Mar 2008, 10:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR