예제 #1
0
파일: Template.php 프로젝트: kylewm/Known
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }