예제 #1
0
파일: Theme.php 프로젝트: rishiv3/gantry5
 public function url_filter($text)
 {
     return Document::urlFilter($text, true, 0);
 }
예제 #2
0
 /**
  * Filter stream URLs from HTML input.
  *
  * @param  string $html         HTML input to be filtered.
  * @param  bool $domain         True to include domain name.
  * @param  int $timestamp_age   Append timestamp to files that are less than x seconds old. Defaults to a week.
  *                              Use value <= 0 to disable the feature.
  * @return string               Returns modified HTML.
  */
 public function htmlFilter($str, $domain = false, $timestamp_age = null)
 {
     return Document::urlFilter($str, $domain, $timestamp_age);
 }