I want to convert the string to html. My string contains both the contents as well as html tags. I tried using this.sanitizer.bypassSecurityTrustHtml() but this didn’t worked. My string content is:
With the innerHtml as well as this.sanitizer.bypassSecurityTrustHtml(), I was able to convert the escape characters to html elemtents only but could’t do the styling. Refer the screenshot attached below:
I want to add the tags to html too as well as unconverted escape characters to normal tags/symbols.