Packages narrative
packages / shopify-html

shopify-html

Functions

NameDescription
toPlainTextConverts a Shopify-origin HTML string to plain text, inserting newlines at block-element boundaries to preserve paragraph structure.
toReactNodesParses a Shopify-origin HTML string and returns a React node tree suitable for direct rendering, normalizing HTML attributes and optionally replacing tags with custom React components.

Types

NameDescription
ToReactNodesOptionsOptions accepted by

On this page