I am having customized pagination in cakephp .
<ul class="pagination centerPaginate">
<?php
if($this->Paginator->counter('{:pages}') > 1) {
//If disabled,then last para
echo $this->Paginator->prev('«', array( 'tag' => 'li'), null, array('class' => 'prev disabled prv' ,'tag' => 'li', 'escape' => false));
echo $this->Paginator->numbers(array('separator' => '', 'tag' => 'li' ,'currentClass' => 'active', 'currentTag' => 'a' , 'escape' => false));
echo $this->Paginator->next('»', array( 'tag' => 'li'), null, array('class' => 'next disabled nxt' ,'tag' => 'li', 'escape' => false));
}
?>
</ul>
The characters i am going to insert are «
and »
, I used 'escape'=> false .
On 1st page "Previous" Tab contains proper characters . But Next contains Tag like «
Not actual character.
On middle pages Tags contain Tag like « etc
And similarly on last page , "Next" Character is ok but problem in Prev character