Collapse Menu
Docs Home
Extensibility Options
Contact Support

List of Accepted Elements in Data Fields

Overview

This article provides a list of the elements that are accepted when editing data fields in your FastSpring Store.

 Note

This article applies to both Classic Commerce and Contextual Commerce 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).

 

HTML Elements Accepted in Fields that 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 element 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.

 

Try FastSpring

Get a free account and see why FastSpring is the ecommerce partner of choice for software providers around the world. Try our full-service ecommerce solution today to unlock revenue growth for your online company.