/** * Automatically adds paragraph tags (etc) to a given piece of unformatted or semi-formatted text. * @param $html * @return \false|string */ function autop($html) { $html = site()->triggerEvent('text/format', [], $html); require_once dirname(dirname(dirname(__FILE__))) . '/external/MrClay_AutoP/AutoP.php'; $autop = new \MrClay_AutoP(); return $autop->process($html); }
/** * Automatically adds paragraph tags (etc) to a given piece of unformatted or semi-formatted text. * @param $html * @return \false|string */ function autop($html) { require_once dirname(dirname(dirname(__FILE__))) . '/external/MrClay_AutoP/AutoP.php'; $autop = new \MrClay_AutoP(); return $autop->process($html); }