Customizing Knowledge Base Articles with HTML

Last Updated -

For security reasons we now validate which elements we allow to be inserted into the Support Center articles. The HTML elements we currently allow are:

 
a

b

blockquote

br

caption

cite

code

col

colgroup

comment

dd

del

div

dl

dt

em

embed

font

iframe

h1

 
h2

h3

h4

h5

h6

hr

id

img

input

ins

li

link

meta

object

ol

option

p

pre

plusone

q

 
script

select

small

span

strike

strong

sub

sup

style

table

textarea

tbody

td

tfoot

th

thead

title

tr

u

ul

Allowed attributes for given element:
 

'a' => [ 'class', 'data-count', 'data-lang', 'data-layout', 'data-send', 'data-show-faces', 'data-width', 'href', 'id', 'name', 'style', 'target', 'title'],

'blockquote' => [ 'class', 'cite', 'style'],

'col' => [ 'class', 'span', 'style', 'width'],

'colgroup' => [ 'class', 'span', 'style', 'width'],

'div' => ['class', 'data-send', 'data-layout', 'data-width', 'data-show-faces', 'id', 'style'],

'embed' => ['allowfullscreen', 'allowscriptaccess', 'height', 'src', 'style', 'type', 'width'],

'font' => [ 'class', 'color', 'style'],

'h1' => ['class', 'id', 'style'],

'h2' => ['class', 'id', 'style'],

'h3' => ['class', 'id', 'style'],

'h4' => ['class', 'id', 'style'],

'h5' => ['class', 'id', 'style'],

'h6' => ['class', 'id', 'style'],

'input' => ['id', 'else', 'maxlength', 'name', 'size',
'style', 'type', 'value'],

'img' => ['align', 'alt', 'class', 'height', 'id', 'src',
'style', 'title', 'width'],

'iframe' => ['allowfullscreen', 'class', 'frameborder',
'height','marginwidth', 'marginheight', 'scrolling', 'src',
'style','width'],

'li' => ['class', 'style'],

'link' => ['href', 'rel', 'style', 'title', 'type'],

'meta' => ['content', 'property', 'style'],

'object' => [ 'class', 'height', 'style', 'width'],

'ol' => [ 'class', 'start', 'style', 'type'],

'option' => ['id', 'name', 'style', 'value'],

'p' => ['class', 'style'],

'plusone' => ['size', 'style'],

'q' => [ 'class', 'cite', 'style'],

'script' => ['src', 'type'],

'select' => ['id', 'name', 'style'],

'span' => ['class', 'id', 'style'],

'style' => ['type'],

'table' => [ 'cellspacing', 'class', 'id', 'style', 'summary', 'width'],

'td' => ['abbr', 'axis', 'class', 'colspan', 'id', 'rowspan', 'style', 'width'],

'textarea' => ['cols', 'id', 'name', 'rows', 'style'],

'th' => ['abbr', 'axis', 'class', 'colspan', 'id', 'rowspan', 'scope', 'style', 'width'],

'tr' => ['cellspacing', 'class', 'style'],

'ul' => [ 'class', 'id', 'style', 'type'],

'video' => ['controls', 'height', 'preload', 'src', 'style', 'width']



Allowed protocols for given element:
 

'a' => {'href' => ['ftp', 'http', 'https', 'mailto', :relative]},

'blockquote' => {'cite' => ['http', 'https', :relative]},

'embed' => {'src' => ['http', 'https', :relative]},

'img' => {'src' => ['http', 'https', :relative]},

'object' => {'src' => ['http', 'https', :relative]},

'q' => {'cite' => ['http', 'https', :relative]},

'video' => {'src' => ['http', 'https', :relative]},

 

If you don't see an element you need listed here please contact support for help.


Please note that the "script" tag is restricted.  To request to have this enabled please contact support and provide a justification.