I am try add <b> tag inside <a> in cake php
I need output like that
<a href="/carsdirectory/users/logout"><b>Logout</b></a>
but i dont how to add tag in this code
<?php echo $this->Html->link('Logout', '/users/logout'); ?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please keep in mind that styling should not be part of your HTML Output and – as already suggested by my previous posters – should be in your CSS.
However, there you go (note the
escape=false):or even more HtmlHelper magick:
Edit: added Ish Kumar’s suggestion for localisation, in cakephp 2.0 we don’t need the “true” anymore 😉
One more thing: if you use
escape=falsekeep in mind to sanitize the tags content (in this case the<b>Logout</b>) by yourself, especially if its generated user content e.g.<b>$userInputVar</b>.