Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / createRawElement

Function: createRawElement()

createRawElement(options?): RcmlRaw

Defined in: rcml/src/email/create-rcml-element.ts:1137

Build an <rc-raw> — an HTML escape hatch whose content is embedded verbatim in the rendered email. Use sparingly; it bypasses the RCML structural / attribute validators.

Parameters

options?

RawElementOptions = {}

options.content is the raw HTML string. Omit for an empty node.

Returns

RcmlRaw

A typed RcmlRaw node.

Example

ts
createRawElement({ content: '<!--[if mso]><table><tr><td><![endif]-->' })