当我使用DOMDocument()处理base64格式的图像时,它不会输出图像:
$text ='<p>Some text and then an image...<br><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAJ/9JREFUeNrsnQtwXNWZ57ulvv2UulvqltSSWrIe1sOWbRmwY4wBk9gukjBA2ClmIWFD7VaKTXbzYJJapiYzWxMmQO1kA8OkINmQ7GwymDAJyRiHITwMGBtsY/yS/JD1sFuW1LKeLXVL6vdrj9wghNRq9eN29z3n/H/VRQlLavuee/t3vu+73z1HvvPImAwAAGigAEMAAICwAAAAwgIAQFgAAABhAQCAOCgwBEBcjMG5Nc6Bj7522YWQd+Fbaq9T5XGu+g4uU93i/50xVPsV2tjXnWVtGGEIC4B0rKQKefSuYUXQq5uZb45RO4ZEefMl71Ox6OsNH3/hM9WQ//q1Rp/GGFRonAarV6npNTTg1LCNHH1YYFWsnjGTe7LM0RcLkcQSUzaICKqAvjwmMhKaObUmWAzCAuwbqso1SKIng+OKcma8IOin+nCIwoJaw5zeAoVBWIAR2icuGF32kql+jWOQdkOtCsko3fqKWUP1hMEKf0FYgA6aXbbKiT4iKd1oH8/jEPPXlHntVUOtXVuBCwPCAlLBGJxrGzld4rAVj/YyH0mlQUij9xsqpkvrR8qaEHxBWCA/WD1jjVc7EEylRERQeU21kBeEBXLqqXJ7h3JmHKORubwmLOsHzC1IG/MF+rBYzvvKRrsQT4kFSZ/JYJJX3bW00WVpnjKv/bByK0YGERZIn/aJCzX2E6hP5Qy3pQlhFyIskHJI1T5wxNL/gcI7g9HIJQthV0BfPm1pGazchGoXIiywIlbP2Oae1xBSSYdYwmir3QZzQVjgU9nf2t4DUn5QBuaCuSAsINsxeLjKdgw3/mAuCAtIXVXWnoMoVMFcEBaAqkCO8Jlq/rDjYYxDquAuIVQF8oDaMbS7++W3Wr+EoYCw2AFld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gI9WU08Cm01+HrcBKkGujruNb87144RmMBoSVT9aMvVZ97q/REQpWRTuyv6nzYYvzFIYCKWF+WNf3Y6XjKMYBpETQuLm/6WHcQ0SElTtIbL+x81uwFUgDwdnRdPrrNZOHMRQQVi6YL1p1PszkigsgR1lM2Fd66en13X+PqhaElV0szlNVXY+i0wqIFWqhqgVhZYs1Y69VdD+OEjsQMdQiV1SL7acYCghLZJoGfm3s/wXGAYiOevytjZ3fMrt7MBQQljis6/uxdmQ/xgFk61PnHa7qepSE8BgKCEsEW+GGIMhBekhCeKSHEBZsBWhKDzec/yvcPYSwYCtAB4VzfU2dD6OkBWHBVoCS9DDgrOp6FM6CsGArQImzwr7qc3+NMjyEBVsBajD2/wLOgrBgKwBnQViwFQBwFoSVG1psP4WtAJwFYVEAuRqw1Q2AsyAsOmyF5wQBnAVhUYDZ3QNbAVowDD6P/ix+hTW/k2DXozjrgBbkYR+5YvHsDo/CIme98tIzWN8KUOestef/BuPAnbAaLz6OlY4BlZ9S7zDWdeBLWOR8YzNBQC/q8bewvDIvwkITA2CA8r4nUcxiX1hmd49h8Hlc7oB25GFfne05CItlyIxU1fMPKLQDNlA6jnKeGDIurPq+p7FJF2CJsoFfQVhs0mB/SXB24BIHTH1ivcM8t78zKyyzu6fY/iKub8AehuGXICymiPWI4soGTCIPOLkNstgUVu3AXvSIAgRZEBYFWJyn0HUFmA+y+LxdyJqwSDJY3vckLmjAPCUTByEs6pnvY0DXFeAAwXkawqI+GUQfA+AlKwz7aiYPQ1g0J4O2Z3EdA34omv4QwqIVq30fmtoBX1nhbBeERSUG37B2ZD+uYMBXVhhw8rZ+w/8XYACjbj+jhVgAtgAAAABJRU5ErkJggg==" data-filename="avatar.png" style="width: 400px;"><br></p>';
//Prepare a DOM so we can make changes to the html
$dom = new DOMDocument();
$dom->loadHTML(mb_convert_encoding($text, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
//Clean up empty paragraphs
$paragraphs = $dom->getElementsByTagName('p');
foreach ($paragraphs as $item)
{
if (!trim($item->textContent))
{
$item->parentNode->removeChild($item);
}
}
//Save changes to the html
$text=$dom->saveHTML();
echo $text;
如何处理此图片?