cake provides a global shortcut function called h() which internally
calls htmlspecialchars() with the charset defined in your config.
There's no actual helper method for this.

<h1><?php echo h($this->data['Some']['thing']); ?></h1>

On Apr 21, 1:34 pm, Neveldo <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to escape HTML chars for some titles and paragraphs in my
> view. I don't find any function in the HTML helper ...
>
> Is there any function in cakePHP to do that ?
> Or must I simply use the htmlspecialchars() PHP function ?
>
> thank a lot !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to