ServiceNow - Widgets special escape characters in HTML

in order to avoid this type of problem with special characters in strings,

 

 see https://community.servicenow.com/community?id=community_question&sys_id=876d4be9db9cdbc01dcaf3231f96197c

//client side:

function($scope, $sce) {

  /* widget controller */

  var c = this;

// Display HTML field

$scope.data.desc = $sce.trustAsHtml($scope.data.desc);

}

Comments

Popular posts from this blog

GlideRecord setValue

URL link in addInfoMessage