Probably the simplest solution would be to update the existing DB
content with HTML tags and implement a WYSIWYG control (FCKEditor,
etc.) for adding new content.

Otherwise, look online for routines for changing newlines to
paragraphs or dig through the source for any of those WYSIWYG apps,
WordPress, etc.

On Tue, Sep 8, 2009 at 8:04 AM, Caio Tarifa<[email protected]> wrote:
>
> Hello!
>
> The designer of my agency asked me that instead of returning the
> contents of a description like this: <?php echo nl2br ($ example
> ['example'] ['content']);?> That generates the tag <br /> return each
> row being <p>Paragraf 1 - Content</p> <p>Paragraf 2 - Content</p>.
>
> Can someone help me?
>
> Regards,
>
> >
>

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