---
title: FormattedString - GraphQL Admin
description: |
  A string containing a strict subset of HTML code. Non-allowed tags will be stripped out.
  Allowed tags:
  * `a` (allowed attributes: `href`, `target`)
  * `b`
  * `br`
  * `em`
  * `i`
  * `strong`
  * `u`
  Use [HTML](https://shopify.dev/api/admin-graphql/latest/scalars/HTML) instead if you need to
  include other HTML tags.
  Example value: `"Your current domain is example.myshopify.com."`
api_version: 2025-10
api_name: admin
type: scalar
api_type: graphql
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/latest/scalars/formattedstring
  md: https://shopify.dev/docs/api/admin-graphql/latest/scalars/formattedstring.md
---
# FormattedString
scalar
A string containing a strict subset of HTML code. Non-allowed tags will be stripped out. Allowed tags:
* `a` (allowed attributes: `href`, `target`)
* `b`
* `br`
* `em`
* `i`
* `strong`
* `u` Use [HTML](https://shopify.dev/api/admin-graphql/latest/scalars/HTML) instead if you need to include other HTML tags.
Example value: `"Your current domain is example.myshopify.com."`
## Map
### Fields with this scalar
* <-|[BasicEvent.message](https://shopify.dev/docs/api/admin-graphql/latest/objects/BasicEvent#field-BasicEvent.fields.message)
* <-|[BasicEvent.secondaryMessage](https://shopify.dev/docs/api/admin-graphql/latest/objects/BasicEvent#field-BasicEvent.fields.secondaryMessage)
* <-|[CommentEvent.message](https://shopify.dev/docs/api/admin-graphql/latest/objects/CommentEvent#field-CommentEvent.fields.message)
* <-|[CurrencyFormats.moneyFormat](https://shopify.dev/docs/api/admin-graphql/latest/objects/CurrencyFormats#field-CurrencyFormats.fields.moneyFormat)
* <-|[CurrencyFormats.moneyWithCurrencyFormat](https://shopify.dev/docs/api/admin-graphql/latest/objects/CurrencyFormats#field-CurrencyFormats.fields.moneyWithCurrencyFormat)
* <-|[CustomerVisit.referralInfoHtml](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerVisit#field-CustomerVisit.fields.referralInfoHtml)
* <-|[EditableProperty.reason](https://shopify.dev/docs/api/admin-graphql/latest/objects/EditableProperty#field-EditableProperty.fields.reason)