I am generating html, and inserting it into my web page using
let data = '<font color=blue>hello world</font>';
this.safevalue = this.domSanitizer.bypassSecurityTrustHtml(data);
Elsewhere in my code I want to convert the safe value back into a string, so I tried this...
data = this.safevalue.toString();
but this sets data to a string like this...
'SafeValue must use [property]=binding: (see http://g.co/ng/security#xss)'
which is not helpful
console.log(this.safevalue)
? – Jaine