I'm attempting to assign a string value with HTML tags to a control using the patchValue
method. However, the HTML tags are being rendered as plain text for some unknown reason.
<textarea rows="5" name="myField" formControlName="myField" readonly></textarea>
const htmlStr = '<p>HTML Content HERE</p>'
// assuming the form group instance is already created
this.form.get('myField').patchValue(this.htmlStr);
The Angular API documentation doesn't provide much information on how patchValue handles HTML values and is quite generic in this aspect.