Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape new lines from JSON-ld data #321

Open
tcitworld opened this issue Jun 14, 2023 · 0 comments
Open

Escape new lines from JSON-ld data #321

tcitworld opened this issue Jun 14, 2023 · 0 comments

Comments

@tcitworld
Copy link

The JSON-ld data does not escape newlines, leading to broken data (as JSON does not allow this).

For instance with this event:

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Event",
      "url": "https://gettogether.community/events/34457/freak-stammtisch/",
      "name": "FRe;AK Stammtisch",
      "description": "Einstmals das Treffen der Friendica und Hubzilla Nutzerïnnen aus Berlin und Umgebung. Heute ein munteres Zusammenkommen von Fedizen unabhängig vom der Fediverse Plattform die verwendet wird.

Wir treffen uns in der [c-base](https://c-base.org) - Rungestrasse 20
10179 Berlin.",
      "image": "https://gettogether.community/media/CACHE/images/team_covers/freaks-berlin_fu3bIBO/24d96daa25f309fbc976d6f54e5da3d3.png",
      "organizer": {
          "@type": "Organization",
          "name": "FRe;AK",
          "url": "https://gettogether.community/freaks/"
      },
      
      "location": {
        "@type": "Place",
        "name": "c-base",
        "address": "Rungestraße 20, 10179 Berlin, Germany"
      },
      
      "startDate": "2023-07-03T17:00:00+00:00",
      "endDate": "2023-07-03T20:00:00+00:00"
    }
</script>

Some kind of filter here should be enough:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant