Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-328

Problem parsing json-ld content surrounded by comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • core
    • None

    Description

      Sometimes in json-ld script blocks (e.g., on https://www.guthriegreen.com), you will see

      /*<![CDATA[*/

      ...json-ld content...

      /*]]>*/

      or 

      //<![CDATA[

      ...json-ld content...

      //]]>

       

      Currently we are stripping CDATA markers, but we are not stripping leading & trailing comments, which will cause json-ld parsing to fail. This may be related to issue #17. 

       

      Attachments

        Issue Links

          Activity

            People

              hansbrende Hans Brende
              hansbrende Hans Brende
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: