Last modified: 2007-04-17 17:40:50 UTC
When querying an attribute which contains a '<' or '>', these chars are doubly encoded, so the user
sees < (or >). You can see it for example on
http://ontoworld.org/index.php?title=Sandbox&oldid=23005, right at the bottom of the page.
I think this bug is an instance of a general problem: SMW escapes all "&" in a
string. In cases where they belong to an HTML escape, this is not correct. The
assumption here is that we want to store the text as printed, not as typed, i.e.
we want "&" and "&" to be stored as the same thing. So SMW would need to
check whether or not some & is part of a (supported) HTML escape. Maybe we can
just use some of PHP's HTML escaping to prevent this from happening.
The encoding now has been fixed using MW's Sanitizer.