Announcement

Collapse
No announcement yet.

Parse JSON error if filtered descriptions have embbeded HTML containing quotes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Parse JSON error if filtered descriptions have embbeded HTML containing quotes

    Fault on both on SD 2014 V14.0.0 OLWB and 14.0.1 ONTA Beta as per title.

    How to see fault:
    Go to Settings / Search And Filtering Settings / Results and enable Description (Full Description).

    Go to the Gold Chain product and append the following to the Full Description.
    Code:
    !!<<img src="s-Chain.jpg" />>!!
    Now upload the site and select the Necklaces section from the main menu.
    The following error appears:
    Code:
    The filter operation returned a script error. Please try again, and contact us if the error persists. The error was: 
    
    [SyntaxError: parseJSON]
    The waiting animation never completes and the results aren't filtered.

    This seems to be dependent on the HTML tag used. IMG tag gives an error but using:
    Code:
    !!<<b>this is bold</b>>!!
    seems to be OK.

    I noticed that this example doesn't contain any quotes, so I tried using single quotes within the IMG tag:
    Code:
    !!<<img src='s-Chain.jpg' />>!!
    This seems to work. So it looks like double quotes ( " ) within embedded HTML is the culprit.

    WORKAROUND: If you embed HTML in your descriptions and display these in filtered results, then use single quotes within your HTML tags.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    My apologies I have missed this. It has now been passed on, many thanks.

    Comment

    Working...
    X