OK. Here is from community/src/XF/EditHistory/Post.php starting at line 75
public function getHtmlFormattedContent($text, Entity $content = null)
{
return \XF::app()->templater()->func('bb_code', [$text, 'post', $content]);
}
And here was what was tried
return...