I want to put HTML code that I am getting from the MySQL database into my HTML page. I am using [innerHtml], but the div width is larger than the page max-width. How can I solve the problem?
CSS
.sonclass {
display: inline-flex;
max-width: 1300px;
}
.fatherclass {
width: 1300px;
}
HTML
<div class="fatherclass">
<div class="sonclass" [innerHTML]="data.html"></div>
</div>