Same :/ I've already tried to replace double quotes with nothing
On Feb 20, 5:34 pm, Jonathan Lundell <jlund...@pobox.com> wrote: > On Feb 20, 2011, at 8:13 AM, Alexandre Strzelewicz wrote: > > > > > > > > > > > > > Rhm sorry for posting 4 times the same message... > > > {{=XML(note.content, sanitize=True).xml().replace('\n','<br/>')}} > > > replace '\n' with 'br' but web2py quote the content : > > > "* Test1 > > <br/>* Test2 > > <br/>* Test3 > > <br/>" > > > and without replacing '\n' with 'br' it doesn't insert double quotes. > > > * Test1 > > * Test2 > > * Test3 > > > But without br there are no new line. > > > It seems to be so simple but I've no passtrough to avoid this problem. > > Perhaps: > > {{=XML(note.content, sanitize=True).xml().replace('\n','<br />').strip(")}} > > > > > > > > > > > On Feb 20, 1:06 am, Bruno Rocha <rochacbr...@gmail.com> wrote: > >> I guess it should be 'sanitize' > > >> {{=XML(note.content, sanitize=True).xml().replace('\n','<br/>)}} > > >> Bruno Rocha > >> [ About me:http://zerp.ly/rochacbruno] > > >> 2011/2/19 Alexandre Strzelewicz <strzelewicz.alexan...@gmail.com> > > >>> Thanks, but it doesn't work, it gives me the error "unexpected keyword > >>> argument escape". > > >>> Is there a way to remove double quotes when printing {{=note.content}} ? > > >>> On Sat, Feb 19, 2011 at 4:03 PM, Massimo Di Pierro < > >>> massimo.dipie...@gmail.com> wrote: > > >>>> try this: > > >>>> {{=XML(note.content,escape=True).xml().replace('\n','<br/>)}} > > >>>> On Feb 19, 8:18 am, Alexandre Strzelewicz > >>>> <strzelewicz.alexan...@gmail.com> wrote: > >>>>> In my view I display text with : > >>>>> {{=note.content}} > > >>>>> But I didnt find a way to replace new line with <br/>. > >>>>> I tried directly with replace('\n', '<br/>') but it escapes the br in > >>>>> html format > > >>>>> Thanks > > >>> -- > >>> Cordialement, > >>> Alexandre Strzelewicz > > >>>www.hemca.com