how to format an html string to redcloth format, the opposite function to to_html ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
#to_html is a one-way function. Not everything that can be expressed in HTML has a representation in redcloth. I guess you could hack something up that throws out non-mappable forms, but... On Apr 27, 10:45 am, Jean-Sébastien <jeansebastien....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> how to format an html string to redcloth format, the opposite function > to to_html ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
clothred http://clothred.rubyforge.org/2007-04-10-faq.html On Apr 26, 10:45 pm, Jean-Sébastien <jeansebastien....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> how to format an html string to redcloth format, the opposite function > to to_html ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
There is also html2textile written in python. I cannot compare it with clothred because I didn''t use clothred (yet). best regards, Bojan Dorren wrote:> clothred > http://clothred.rubyforge.org/2007-04-10-faq.html > > > On Apr 26, 10:45 pm, Jean-Sébastien <jeansebastien....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> how to format an html string to redcloth format, the opposite function >> to to_html ?-- Bojan Mihelac -> Ruby on Rails and Web Developer Blog : http://source.mihelac.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thank you people, i think redcloth is the good solution for me. On Apr 27, 4:06 pm, Bojan Mihelac <l...-3SxN1WY3PMJAfugRpC6u6w@public.gmane.org> wrote:> There is also html2textile written in python. > > I cannot compare it with clothred because I didn''t use clothred (yet). > > best regards, > Bojan > > Dorren wrote: > > clothred > >http://clothred.rubyforge.org/2007-04-10-faq.html > > > On Apr 26, 10:45 pm, Jean-Sébastien <jeansebastien....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> how to format an html string to redcloth format, the opposite function > >> to to_html ? > > -- > Bojan Mihelac > -> Ruby on Rails and Web Developer Blog :http://source.mihelac.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---