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