The clumsy way is to replace all < with <, and possibly all > with >. 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 -~----------~----~----~----~------~----~------~--~---
