How do I enable the ability to use iframe html tags in KB articles?

markalpine
Kilo Expert

How do I enable the ability to use iframe html tags in KB articles?

We are using Jakarta.....

 

 

thanks

1 ACCEPTED SOLUTION

DScroggins
Kilo Sage

You can edit the HTMLSanitizerConfig script include to whitelist iFrame tags.

 

Replace line 6-11 with the following:

HTML_WHITELIST : {
		globalAttributes: {
			attribute:[],
			attributeValuePattern:{}
		},
		iframe:{
			attribute:["width", "height","src","frameborder","allow","allowfullscreen"],
			attributeValuePattern:{}
		 },
	},

View solution in original post

3 REPLIES 3

DScroggins
Kilo Sage

You can edit the HTMLSanitizerConfig script include to whitelist iFrame tags.

 

Replace line 6-11 with the following:

HTML_WHITELIST : {
		globalAttributes: {
			attribute:[],
			attributeValuePattern:{}
		},
		iframe:{
			attribute:["width", "height","src","frameborder","allow","allowfullscreen"],
			attributeValuePattern:{}
		 },
	},

markalpine
Kilo Expert

I got around to trying this and it does not work. Any suggestions?

markalpine
Kilo Expert

I figured it out....The answer is the page in the iframe has to be an SSL as well.