older-blog-posts #56
@ -673,11 +673,6 @@ EOD;
|
|||||||
*/
|
*/
|
||||||
public function changeHTMLSrc(string $body, string $to, string $from): string
|
public function changeHTMLSrc(string $body, string $to, string $from): string
|
||||||
{
|
{
|
||||||
// $body = preg_replace_callback('/>([^<]+)</', function($matches) {
|
|
||||||
// // Convert special characters to HTML entities
|
|
||||||
// return '>' . htmlentities(trim($matches[1]), ENT_QUOTES | ENT_HTML5, 'UTF-8') . '<';
|
|
||||||
// }, $body);
|
|
||||||
|
|
||||||
$htmlDoc = new DOMDocument();
|
$htmlDoc = new DOMDocument();
|
||||||
|
|
||||||
// Load the raw HTML content into DOMDocument
|
// Load the raw HTML content into DOMDocument
|
||||||
|
Loading…
Reference in New Issue
Block a user