The CreatorCon Call for Content is officially open! Get started here.

Embedded Video in KB article using URL doesnot work

Mahesh
Kilo Explorer

We are facing the issue in our instance in Madrid Version whenever we are embedding code in KB article using URL or embedded code it gets disabled whenever KB article is saved. We have checked the system property "glide.html.sanitize_all_fields" and make the Value as False then it works but WHEN we are capturing the body of email into Additional Comments field. It has been observed that content in the body of the email is either not getting displayed or getting unformatted(HTML tags are getting displayed instead of actual content) in the ticket. It is affecting when we make the property value as False and when we make it as True then embedded video code disappers.

Customer want both the functionality should work without any issue can someone has any idea or solution to fix this.

2 REPLIES 2

Rajesh Kannan G
ServiceNow Employee
ServiceNow Employee

Hi Mahesh,

HTML Sanitizer protects your instance against security concerns such as cross-site scripting, etc. It is not encouraged to disable it by making the property false.

You have two options,

Mark as Correct Answer & Helpful if this solves your issue or Helpful if this is useful to you.

Regards,

Rajesh

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Follow these steps - 

Go to the script include table and search for HTMLSanitizerConfig - https://docs.servicenow.com/bundle/orlando-platform-administration/page/use/using-forms/task/t_Embed...find_real_file.png

find_real_file.png

Open the script - after line 15 copy and paste these lines of code - just like the picture below

  embed:{attribute:["src","type","allowfullscreen","allowscriptacces","plugnspage"]},
    object:{attribute:["classid","codebase"]},
    param:{attribute:["name","value"]}

find_real_file.png

The 2nd option is to set and attribute to false-

you first have to right-click the description in the knowledge article item to open the context menu -find_real_file.pngClick on "configure Dictionary"

on the bottom of that new page, there is a tab called attributes - you should see a new option - click itfind_real_file.png

now make sure it looks like the picture - once it does click save

find_real_file.png

(both steps) now type in sys_properties.list in the navigation menu search bar - 

find_real_file.png

now search for this property - "glide.ui.html.editor.extended_valid_elements" property

keep searching it doesn't always popup so try glide.ui.html and look or it on the list -

find_real_file.png

 

open it and add this to the value section and save

a[onclick|href|target|rel|media|hreflang|type|charset|name|rev|shape|coords|download|id|accesskey|class|dir|lang|style|tabindex|title]

find_real_file.png

 

now go back to the knowledge article and insert the video back in. and it should work find_real_file.png