i was wondering if there’s any way to print ” ” inside a postLink element using CakePHP.
I want to get something like this:
<a href="#"> </a>
And trying this:
'.$this->Form->postLink(nl2br(" "), array('action'=> 'xxxx')).'
I get this instead:
<a href="#">&nbsp;</a>
Which prints me inside the link instead of printing a white space.
Since postLink() is nothing else than a special wrapper for link() there should also be
escapesee https://github.com/cakephp/cakephp/blob/master/lib/Cake/View/Helper/FormHelper.php#L1582