Open etjones opened 12 years ago
DropdownList returns string with a preceding space which is OK if all you want is for a human to read the string but it messes up string comparisons. The receiving program can strip it off but that's a get around.
Opened the leading space issue as #18, and fixed it.
Many thanks for fixing the leading space issue.
The window/door plugin is starting to work and Live Parametric will make it very much more user friendly. It's a great improvement on Parametric.
Bug description
If HTML characters (angle brackets, etc.) are sent to a DropdownList (or other VariableDicts, probably) the bracketed parts will be ignored.
A solution would be to use cgi.escapeHTML to escape all LP strings, but cgi isn't included in SU's Ruby. Will investigate an alternative solution.
Workaround
Er, for the moment don't use strings with angle brackets in them.
Demo program:
class DropdownBugExample < LiveParametric
Correct behavior would yield a dropdown list with these entries:
end