There is a string type variable, which contains an iframe tag. I need angular to identify the string as an iframe HTML tag and populate the HTML.
Currently, angular is constructing its has string.
Please check the below code
Variable:
this.longDesc = "<iframe width="something" height="something" src="something" ></iframe>"
html file
<div class="description-panel" [innerHTML]="longDesc" ></div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…