Name

sn_cd.cd_UtilsAjax

Description

Generic functionality for the Content Publishing

Script

var cd_UtilsAjax = Class.create();
cd_UtilsAjax.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

  getHtmlSanitizeConfig: function() {
  	var sysId = this.getParameter('sysparm_value');
  	var attributeValue = undefined;
  	var content = new GlideRecordSecure("sn_cd_content_portal");
  	content.addQuery("sys_id", sysId);
  	content.query();   
  	while (content.next()) {
  		attributeValue = content.rich_content_html.getAttribute("html_sanitize_config");
  	}
  	
  	return JSON.stringify(attributeValue);
  },

  type: "cd_UtilsAjax"
});

Sys ID

ceb98121774311106220a5424f5a9992

Offical Documentation

Official Docs: