Accessibility links

Breaking News

Removing forbidden code from dynamic infographics and snippets

What's inside this article:


Basic information

This article lists code that is forbidden for dynamic infographics and snippets. Some code is forbidden for security reasons and to prevent usability issues on the website.

Pangea CMS checks for forbidden code after you paste your code. If Pangea CMS finds forbidden code, you see a red error message under the Code box. This tells you what was found and the location of the forbidden code. You cannot save the infographic or snippet until the forbidden code is removed.

IMPORTANT: If you did not create the code and you are not an expert coder, do not change the code. Contact an expert coder in your organization for assistance.



Forbidden code for all layouts

The following code is always forbidden, regardless of your selected layout.

Forbidden elements

  • <base>
  • <command>
  • <datalist>
  • <isindex>
  • <keygen>

Forbidden attribute and value pairings

  • The attribute href with a value containing newsroomtoolkit
  • The attribute href with a value containing nocache=1
  • The attribute src with a value containing newsroomtoolkit



Forbidden code for all layouts except 'Empty canvas'

In addition to the forbidden code listed above, the following elements are forbidden for all layouts, except Empty canvas:

  • <body>
  • <head>
  • <html>
  • <meta>

For most layouts, these elements are not allowed in the code because the layout already includes the HTML boilerplate by default. If these elements are also included in the code, Pangea CMS stops you from saving the infographic or snippet to prevent duplication.

Special rules for 'Empty canvas'

Empty canvas is an advanced layout that does not include the HTML boilerplate by default. With this layout, the expert coder must define the HTML boilerplate in the code.

IMPORTANT: We do not recommend the Empty canvas layout for general use.



Learn more

For detailed information about the layout options for dynamic infographics and snippets, see the following article:

This item is part of
XS
SM
MD
LG