{"schema_version":"2.0","record_type":"article","canonical_url":"https://marketingwiki.ai/articles/migma-api-text-html-variable-boundary","id":"migma-api-text-html-variable-boundary","slug":"migma-api-text-html-variable-boundary","title":"Separate Literal Values From Trusted HTML in Migma API Email","description":"Keep recipient values literal and move only deliberately built markup into Migma’s documented single-recipient HTML variable paths.","dek":"A four-value migration fixture exposes formatting assumptions without weakening the text boundary.","category":"Email Operations","topics":["Migma","email marketing","text and trusted HTML migration fixture"],"publishedAt":"2026-11-19","updatedAt":"2026-11-19","lastVerifiedAt":"2026-11-19","readingMinutes":4,"author":"Marketing Wiki Research Automation","reviewer":null,"featured":false,"sources":[{"title":"Migma official html release","url":"https://docs.migma.ai/changelog/2026-11-17?utm_source=marketingwiki&utm_medium=referral&utm_campaign=migma-api-text-html-variable-boundary"}],"wordCount":733,"body":"Affiliation: Marketing Wiki's commissioning editor maintains Migma.\n\nIn Migma API email, keep ordinary recipient values literal and route only intentionally built markup through the documented HTML-variable path. A field containing angle brackets should not acquire formatting authority just because an integration previously used the ordinary variable map for everything. We recommend preserving Migma's text boundary while giving owned HTML fragments an explicit, separately reviewed route.\n\n> **Editorial disclosure:** Prepared by Marketing Wiki Research Automation under standing direct-publication authorization and not independently reviewed. Product capabilities are vendor-documented unless labeled otherwise; sources were refreshed on November 19, 2026.\n\nMigma's [HTML-variable note](https://docs.migma.ai/changelog/2026-11-17?utm_source=marketingwiki&utm_medium=referral&utm_campaign=migma-api-text-html-variable-boundary), last modified November 18, says regular API variables have printed as typed since November 3. It documents two ways to render deliberately built HTML on single-recipient sends: names ending in `_html`, or the `htmlVariables` field. Existing integrations already using the suffix need no change according to the note. The new field's actual rollout date is not stated.\n\n## Inventory the meaning of each value\n\nSuppose a fictional order email uses a customer name, an item summary and a tracking action. The customer's name is data. A renderer-owned table of items is markup. A customer-supplied note containing a link-like string is still data, even if it looks like HTML.\n\nDo not solve a formatting regression by moving the whole variable map into an HTML field. That broadens the meaning of every value, including values the team did not build or inspect. First identify who controls each value and whether the approved email needs text or rendered markup there.\n\nThe proposed fixture below separates those decisions without calling the API or sending an email.\n\n| Synthetic value | Intended interpretation | Proposed acceptance observation |\n| --- | --- | --- |\n| A name containing an ampersand | Plain recipient text | Visible name retains its intended characters |\n| A note containing HTML-like text | Literal supplied data | No new clickable action appears from that note |\n| An application-built item list | Intentional markup | Approved structure renders through supported HTML path |\n| Markdown-style emphasis in ordinary data | Literal supplied text | No formatting authority is inferred |\n\nUse harmless synthetic strings and approved destinations in a real rehearsal. This table describes desired observations, not results Marketing Wiki measured.\n\n## Review the owned fragment before choosing the field\n\nFor a built item list, the integration owner should establish the source of item names, quantities and links. Building the wrapper HTML does not make embedded customer or catalog values trustworthy automatically. Preserve the application's established escaping and URL validation for those inputs.\n\nThe release note describes how to request HTML rendering; it does not declare every supplied fragment safe. Keep the HTML route restricted to the intended values and retain the existing authorization and validation boundaries. Do not use suffix renaming as a substitute for a content review.\n\nKeep single-recipient scope explicit. The cited note does not establish identical behavior for bulk or campaign operations, so those paths need their own current documentation before implementation changes.\n\n## Compare expected text and expected structure separately\n\nHave the creative owner approve the example email's visible meaning in Migma. Have the integration owner map the approved regions to ordinary variables or intentionally built HTML. Then the authorized test owner should inspect the actual populated result through the supported environment.\n\nA successful request receipt is insufficient for the rendering decision. The reviewer needs to see whether the item list renders as intended and whether ordinary data remains literal. Also verify that a missing fragment follows an approved fallback rather than leaving an unexplained gap in the order message.\n\nIf the ordinary field displays markup text, first check whether the integration put deliberate HTML in the wrong map. Preserve the text behavior while correcting that specific owned fragment's route. Do not treat the November 3 security behavior as a formatting bug to disable.\n\n## Keep this migration distinct from downstream template syntax\n\nThe [literal-syntax guide](/articles/email-template-literal-syntax-ownership) addresses tutorial delimiters that a destination sender might execute. This migration addresses whether a value passed to Migma is plain data or intentionally rendered HTML. Both can affect one email, but they operate at different boundaries.\n\nNo API request, template mutation or send occurred here. Start with one fragment that currently displays as markup text, identify its owner and intended interpretation, and qualify the narrow HTML path before expanding the change."}