I want to add the attribute trust to one XML. My problem is that currently I have the value as a string, so I can not use the following code:
trusted (escaped) {
escape.filter('to_trusted', ['$sce', function($sce) {
return function(text) {
return $sce.trustAsHtml(text);
}
}]);
}
Is it possible to convert a string into a XML? I would like to convert escaped.