X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=application%2Fviews%2Fhelpers%2FAnchor.php;h=55cae33cd7c8b2c877c2355074cb993ef078de67;hb=bfe63b61894a100bd3d83ac86593a8d767b94920;hp=ddfe74479cf29f266c20b876ec2c53ee8e1cc404;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git
diff --git a/application/views/helpers/Anchor.php b/application/views/helpers/Anchor.php
index ddfe744..55cae33 100644
--- a/application/views/helpers/Anchor.php
+++ b/application/views/helpers/Anchor.php
@@ -4,7 +4,7 @@
class Syj_View_Helper_Anchor extends Zend_View_Helper_HtmlElement
{
- public function Anchor($href, $text = null, array $attribs=array()) {
+ public function Anchor($href, $text = null, array $attribs=array(), $escape = true) {
$lang = Zend_Controller_Front::getInstance()->getRequest()->getQuery('lang');
if ($lang) {
$translator = Zend_Registry::get('Zend_Translate');
@@ -18,7 +18,8 @@ class Syj_View_Helper_Anchor extends Zend_View_Helper_HtmlElement
if (!isset($text)) {
$text = $href;
}
- $html = '_htmlAttribs($attribs) . '>' . $this->view->escape($text) . '';
+ $content = $escape ? $this->view->escape($text) : $text;
+ $html = '_htmlAttribs($attribs) . '>' . $content . '';
return $html;
}
}