Tag Archives: HtmlHelper

CakePHP’s HtmlHelper::link() Escaping of Attribute Values Gotcha

Just updated pHing Classifieds to CakePHP 1.2.2.8120 and that breaks some JavaScript codes for deleting of messages. Turns out the escape attribute is now passed on to Helper::parseAttributes() so if you have an image link like me, you will have to remember to manually escape the attribute values.<?= $appHtml->link( $appHtml->image('icons/bin.png'), [...]
Posted in Uncategorized | Also tagged | Leave a comment