On Wednesday, July 26, 2017 at 7:43:14 PM UTC-4, Joe Barnhart wrote: > > It's even worse than I imagined. > > Leaving off the T() operation, I find that my field labeled "LCM >" is > actually sanitized at some point into: > > <label class="control-label col-sm-5" for="event_join_lcm_gt" > id="event_join_lcm_gt__label">LCM >: </label> > > Yes, something in the process has *recognized* the character ">" and > changed it to ">" But the field "LCM ≤" was sanitized into: > > <label class="control-label col-sm-5" for="event_join_lcm_le" > id="event_join_lcm_le__label">LCM &le;: </label> > > In this case, not only was the ≤ *not recognized* by the sanitizer, it > actually DE-SANITZED it by removing the ampersand and sanitizing it > separately. >
Both of the above are encoded as expected -- the ">" character is converted to ">", and the "&" character in "<" is converted to "&". This is consistent and expected behavior. If you want to end up with "<", then why not just start with "<"? What is your ultimate goal? Do you not want the final HTML to include the ">" and "<" HTML entities so they display as ">" and "<" on the page? Also, what do you mean by, "If I use the Field titles directly in a table on my own, they work as expected?" In each case, what do you want to display on the page, and what are you expecting in the raw HTML? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.