[Solar-talk] retain line breaks/newline
Antti Holvikari
anttih at gmail.com
Mon Aug 7 11:32:20 PDT 2006
On 8/7/06, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:
> On 8/3/06, Antti Holvikari wrote:
> > 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.
>
> Antti, you have made me interested in Text_Wiki, and reading about its
> capabilities I got even more interested.
>
> I have a trivial question, though (couldn't find an answer in the
> docs): do you know if Text_Wiki can convert basic xhtml to wiki
> markup? I just need to convert really basic markup: em, i, b, strong,
> and href.
>
> And, uh, could share your XHTML-to-Text_Wiki helper? It would help a lot.
Sure. I have some internal logic there for the comments and for the
entrys but you can see the idea. See the attachment.
--
Antti Holvikari <http://phphalo.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WikiText.php
Type: application/pdf
Size: 1680 bytes
Desc: not available
Url : http://mail.killersoft.com/pipermail/solar-talk/attachments/20060807/7c07af01/attachment.pdf
More information about the solar-talk
mailing list