ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / apps/web/components/json-ld.tsx

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / apps/web/components/json-ld.tsx
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberapps/web/components/json-ld.tsx
Original SHA-2560ce0a3a6592031f6ac6bc9c84de358edc8c984b3df8d65eb6424afaff1cf49d6
Git blob SHAf0437a2353a2f1fd23ba9f6e0f7e9ed2016ca3de
Reading-copy SHA-2560ce0a3a6592031f6ac6bc9c84de358edc8c984b3df8d65eb6424afaff1cf49d6

Original source ↗

Recovered source transcript

import { headers } from 'next/headers' interface JsonLdProps { data: Record<string, any> } /** * Renders JSON-LD structured data in a script tag for search engine consumption. * Uses dangerouslySetInnerHTML to prevent React from HTML-escaping JSON characters. * Escapes `<` as `\u003c` to prevent script tag breakout from content-derived fields. */ export async function JsonLd({ data }: JsonLdProps) { const nonce = (await headers()).get('x-nonce') ?? undefined const safeJson = JSON.stringify(data).replace(/</g, '\\u003c') return ( <script type="application/ld+json" nonce={nonce} suppressHydrationWarning // biome-ignore lint/security/noDangerouslySetInnerHtml: JSON-LD requires unescaped JSON; content is sanitized above by escaping < to \u003c dangerouslySetInnerHTML={{ __html: safeJson }} /> ) }

Search equations, builds, manuscript text, and recovered sources.