/** * Strip a node but keep the URL regardless of location. * * @access public * @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); }
/** * Strip a node but keep the email regardless of location. * * @access public * @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); }