I am reading the documentation at https://book.cakephp.org/1.2/en/The-Manual/Core-Helpers/HTML.html#link, and I see this:
link(string $title, mixed $url = null, array $htmlAttributes = array(), string $confirmMessage = false, boolean $escapeTitle = true)
string $title
is where I want to put text with a Spanish accent mark. The text is aquí
, so I tried using aquí
and it did not work. Using aquí
did not work either. In the first case the result was this the website printing exactly aquí
. In the second case, the text was not even displayed at all. How can I print Spanish accent marks or in general, Spanish special characters, using the HtmlHelper in CakePHP 1.2? Thank you.
This is how it works correctly for me now:
<span class="bold">
<?php echo $html->link('aquí', array('controller' => 'products', 'action' => 'change_product'), array('target' => '_self', 'class'=>'js-thickbox', 'escape' => false)); ?>
</span>