Open inilim opened 1 year ago
$str = '
<style>.btn{
font-size: 18px;
}</style>
<div contenteditable class="btn-wrp">
<div class="btn"></div>
</div>
'
$doc= new Document();
$doc->loadHtml((string)$str, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
echo $doc->html();
Вывод: