[web2py] Re: Using html tags inside checkbox labels

2014-09-09 Thread Tauno Metsalu
I found a solution myself for this specific case. I wrote space instead of and then used white-space:pre-line in css. More information: http://stackoverflow.com/questions/8661166/custom-css-classes-for-sqlform-widget-input-in-web2py http://stackoverflow.com/questions/2703601/how-to-give-line-bre

[web2py] Using html tags inside checkbox labels

2014-09-01 Thread Tauno Metsalu
I am quite new in web2py and trying to show line breaks inside checkbox labels, but couldn't figure out how to prevent web2py from sanitizing the tags. My example code is as follows: in model: x = [1, 2, 3] y = ['Apple', 'Banana', 'Cherry'] for i in range(0, len(y)): y[i] = y[i] + "" + str(x[i])