Component.html
<form [formGroup]="formName">
<input formControlName="title">
</form>
Component.ts
this.formName.patchValue({
title : this.content
})
Sometimes this.content contains html tags like <i>/<b> tags. In that case, the tags are also displaying.
How can we achieve that particular text in italics or bold.
Example: this.content = Solve ur doubts in (<i>StackOverflow</i>)
Expected Output : Solve ur doubts in (StackOverflow)
In general, by passing this.content in [innerHTML] attribute solved the issue. But in my case it's a reactive form and innerHtML can't be used. Can someone suggest what can be done to get the output as Solve ur doubts in (StackOverflow)
Thanks in advance.