To-do iframe video urls are sanitized when the source is not Youtube

Alexander17
Tera Guru

Hi,

We are facing a weird issue. When you insert a iframe HTML code to link an external hosted video in a to-do content item.. then when you click on the save button, the url is being removed. If i do this exactly the same in a Rich text portal content.. then it works fine. 

It looks that the to-do content item as a special html sanitizer.. that only allow Youtube video's.. and not other urls. Anyone is facing the same issue.. and have found a solution?

When click save, the video disappear and the url have been removed from the iframe html code.find_real_file.png

 

find_real_file.png

 

thank you

 

1 ACCEPTED SOLUTION

Hi,

Thank you for pointing out to the right direction. I just figure out the solution. It looks like that To-do content items have a separate sanitizer setting. Just go to To-do content table.. and add that extra code to the attributes. this will do the trick.

find_real_file.png

Please mark the answer is correct/helpful , if it helps

View solution in original post

6 REPLIES 6

Chandu Telu
Tera Guru
Tera Guru

Hi,

Check the below link it will help you

https://community.servicenow.com/community?id=community_question&sys_id=1fd3734cdbce7b004819fb2439961958

 

The ability to allow embed code into a Knowledge Article seems to be controlled almost exclusively (in London at least) by:

  • System Definiton -> Dictionary
  • Table = kb_knowledge, Field = text
  • Click the advanced view link
  • Set Attributes = serializer=com.glide.script.TranslatedTextXMLSerializer,html_sanitize=false

 

 

 

 

Please Mark the answer if correct/helpful , if it helps

Hi,

Thank you for pointing out to the right direction. I just figure out the solution. It looks like that To-do content items have a separate sanitizer setting. Just go to To-do content table.. and add that extra code to the attributes. this will do the trick.

find_real_file.png

Please mark the answer is correct/helpful , if it helps

Hi Alexnder,

Looks likely you marked your answer is correct can you please check ??

Thanks
Chandu Telu
Please Mark Correct/helpful, if applicable, Thanks!!

Teresa Carvajal
Giga Guru

Hi Alexander,

I also faced this issue early on. I was trying to use Kaltura videos in my to-dos instead of Youtube, since Kaltura is what my org uses for internal videos. Within Kaltura, there is a Share option and within that option there is three options - Link to Media Page, Embed, and Email. For my to-do's to work I need to copy the Embed html code from Kaltura (which includes the iframe code within it). 

Then I paste that code as the HTML source code. You paste as HTML source code instead of using the URL type on Insert/Modify Video option in the TinyMCE / WYSISWYG.

 

I attached a copy of my source code, in case there is something telling for you there.

 

Good luck!