# `SchemaOrg.HTML`
[🔗](https://github.com/mike-kostov/schema_org/blob/v0.2.0/lib/schema_org/html.ex#L5)

Phoenix function components for embedding Schema.org JSON-LD.

This module exists only when `Phoenix.Component` is available — add
`:phoenix_live_view` to your app's dependencies to use it. It is a thin,
HTML-safe wrapper over `SchemaOrg.to_script_tag/1`.

# `json_ld`

Renders a `<script type="application/ld+json">` tag for a SchemaOrg struct,
or a list of structs (emitted as a single `@graph`).

    <SchemaOrg.HTML.json_ld data={@product} />
    <SchemaOrg.HTML.json_ld data={[@organization, @website]} />

The output is HTML-safe: a value containing `</script>` cannot break out of
the tag (see `SchemaOrg.to_script_tag/1`).

## Attributes

* `data` (`:any`) (required) - a SchemaOrg struct or a list of them.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
