Create event for html2bbcode hook

This commit is contained in:
Art4 2025-02-17 10:55:05 +00:00
parent a94bead5f6
commit 3d3e34865b
5 changed files with 55 additions and 4 deletions

View file

@ -282,11 +282,13 @@ class OEmbed
}
}
} elseif (!strpos($oembed->html, $oembed->embed_url)) {
// add <a> for html2bbcode conversion
// add <a> for html to bbcode conversion
$ret .= '<a href="' . $oembed->embed_url . '" rel="oembed">' . $oembed->title . '</a>';
}
$ret .= '</div>';
// FIXME: Why is $test unused?
$test = Proxy::proxifyHtml($ret, $uriid);
return str_replace("\n", "", $ret);