예제 #1
0
파일: UrlFilter.php 프로젝트: owency/Owency
 /**
  * Strip a node but keep the URL regardless of location.
  *
  * @param array $tag
  * @param string $content
  * @return string
  */
 public function strip(array $tag, $content)
 {
     $url = isset($tag['attributes']['href']) ? $tag['attributes']['href'] : $content;
     return parent::strip($tag, $url);
 }
예제 #2
0
 /**
  * Strip a node but keep the email regardless of location.
  *
  * @param array $tag
  * @param string $content
  * @return string
  */
 public function strip(array $tag, $content)
 {
     $email = isset($tag['attributes']['default']) ? $tag['attributes']['default'] : $content;
     return parent::strip($tag, $email);
 }