hasAttribute('url')) { $url = $token->getAttribute('url'); } else { $url = $text; } //if (subs) // check if the URL is valid if (!Zend_Uri::check($url)) { return $text; } $attributes = Zend_Markup_Renderer_Html::renderAttributes($token); return "{$text}"; } }