List of Accepted Elements in Data Fields

This article applies to both Classic and Contextual Stores.
As a best practice, FastSpring limits the use of certain elements (such as specific HTML tags or attributes) when editing certain data fields stored in your FastSpring account.

When attempting to save changes to a record, the presence of any markup elements not specifically listed in this article may result in an error message that prevents saving the update. In that case, the error message displayed on screen will specifically identify the element(s) that you have entered which are not accepted. In order to save your change, you would just need to modify the field contents by removing the specified element(s).

Accepted HTML Elements

Below is a list of HTML Elements that are accepted in fields which allow customization and formatting.

  • <b>
  • <br>
  • <code>
  • <del>
  • <div>; allowed attributes:  class, style
  • <h1>; allowed attributes:  style
  • <h2>
  • <h3>; allowed attributes:  id
  • <h4>
  • <hr>
  • <i>
  • <li>
  • <p>; allowed attributes:class, style
  • <span>; allowed attributes:class, id, style
  • <strong>
  • <style>
  • <template>
  • <u>
  • <ul>

Additional HTML Elements Accepted in Some Fields

Certain elements are accepted in some fields but not others. The following elements may or may not be accepted depending on the field you are editing:

  • <a>; allowed attributes:  class, href, id, rel, style, target, target_”new”
  • <img>; allowed attributes:  altsrc

Localization Elements Accepted

The following list identifies accepted localization elements used in Classic Commerce Stores.

  • <ar>
  • <bg>
  • <cs>
  • <da>
  • <de>
  • <el>
  • <en>
  • <es>
  • <et>
  • <fi>
  • <fr>
  • <hr>
  • <it>
  • <ja>
  • <ko>
  • <message>; allowed attributes:display, id, productname, value
  • <nb>
  • <nl>
  • <no>
  • <pl>
  • <pt>
  • <ru>
  • <sk>
  • <sv>
  • <zh>

You can find more information about how these elements are used in Translating Product Names and Formatting & Translating Product Descriptions.

Control Elements Accepted

The following list identifies accepted control elements used in Classic Commerce Stores.

  • <choose>
  • <if>; allowed attributes:  hastest
  • <otherwise>
  • <when>; allowed attributes:lang, test

You can find examples of how these elements are used in Working with Variables in SpringBoard and Single Email Fulfillment for a Product Bundle.