I am having content which has a style tag with huge css code. To make it work in innerHTML I am using DomSanitizer with bypassSecurityTrustHtml method to generate safeHtml.
But when I am trying to add same safeHTML to paragraph with innerHTML it is only adding first 9999 characters in P tag. rest of is getting stripped.
this.htmlContent = this.sanitizer.bypassSecurityTrustHtml(data.content)
this is how I am creating the safeHTML which has style tag with huge CSS content.
<p [innerHTML]="htmlContent"></p>
this is how I am adding it in P tag. I tried using pipe for the same but issue is not with sanitizer but innerHTML which is stripping the content.
Problem is only some of the CSS is getting loaded(other CSS is getting stripped). But when I have huge HTML content used with same process it works fine. Need help.