I have a SafeValue
and I am looking for the best way to access the internally wrapped value. Currently, I achieve this by:
const mySafeValue = this.sanitizer.bypassSecurityTrustStyle('42px solid black');
console.log(mySafeValue['changingThisBreaksApplicationSecurity']);
Although this method works well, I believe there might be a better approach. What is the recommended way to retrieve a value that is encapsulated as a SafeValue
?