Just to be sure ... When you view page source, do you see your code
snippets?  If you do, then 703designs is 100% right, and
Sanitize::html could be useful to you.
http://api.cakephp.org/class_sanitize.html

On Mon, Jun 23, 2008 at 12:01 PM, 703designs <[EMAIL PROTECTED]> wrote:
>
> The clumsy way is to replace all < with &lt;, and possibly all > with
> &gt;. If you are going to echo this data with substitutions (using
> double rather than single quotes) then you also will have to make sure
> to escape any special characters, e.g. $.
>
> On Jun 23, 12:04 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
>> I am creating a code snippet database and I am attempting to storing
>> the snippets in a MySQL table. when I pull the snippet out of the
>> table however, the code disappears and nothing is echoed to the
>> browser. I have the snippet wrapped in a <code> tag. How should I be
>> going about this? Thanks for the help.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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