Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 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);
 }