We have privacy policy text, which is around 7000 words and we need to keep on changing it on monthly basis. so we inserted HTML with inline CSS into the database and rendered it using service. Because of legacy, we can't change this method.
From the Angular side we are using this:
<div class="col-auto privacy-policy-body"
[innerHtml]="loginService.userDetails.privacyPolicy?.split('</script>')[1]"></div>
The issue is, that inline CSS is not applicable to it.
Here is the sample code with stackblitz link: https://stackblitz.com/edit/angular-inner-html-demo-j53jsf?file=app%2Fapp.component.ts