With this example: http://jsfiddle.net/lesouthern/y3pXn/ for this filter:
.filter('telanchor',function() {
return function(s) {
var rString = '';
if(typeof s !== 'undefined' && angular.isString(s)) {
rString = 'tel:+' + s.replace(/\D/g,'');
}
return rString;
}
})
It filters correctly to this string in Angular 1.0.3:
<a href="tel:+5103381927">Tel Number</a>
In 1.0.7 it generates to:
<a href="unsafe:tel:+5103381927">Tel Number</a>
How do I not generate this 'unsafe' string?
thank you