older-blog-posts #56

Merged
rodude123 merged 2 commits from older-blog-posts into master 2024-11-04 22:30:01 +00:00
Showing only changes of commit 860c52e829 - Show all commits

View File

@ -673,11 +673,6 @@ EOD;
*/
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();
// Load the raw HTML content into DOMDocument