[Solar-talk] retain line breaks/newline
Jeff Surgeson
solar at 3hex.com
Thu Aug 3 06:23:17 PDT 2006
> > <?php echo nl2br($this->escape($this->list['description'])) ?>
> >
> > works just fine, note to myself, think befor you post!
>
> I had a similar problem where I wanted paragraphs to be inside <p>
> tags. Also I was wondering if I should store the text into db as HTML
> or not. So what I ended up doing was to use Text_Wiki markup and store
> that "as-is" to the db. Then I made a helper to transform that to
> XHTML with Text_Wiki. Works *exactly* as I want.
Thought about using a text wiki type thing but its just too involved for what
I wanted.
But I am going to need to do something like you have done for other stuff,
thanks for the idea's.
--
Jeff Surgeson
More information about the solar-talk
mailing list