I see
List [Less-than sign] List [More-than sign] [Less-than sign] ? [More-than sign][More-than sign]
while it should be:
List [Less-than sign] List [Less-than sign] ? [More-than sign][More-than sign]
I hope you can read it
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler
In my first search attempt (before I posted) I found nothing. In my second search I found this.
But using < instead of < doesn't sound like a solution to this problem.
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler
This is a known issue with the forum software. It uses a library for sorting out the HTML, and that library gets confused by Java generics (which also use angle brackets, but have rather different notions about what constitutes wellformedness). So far, we haven't been able to get anyone to look into this :-(
That's an interesting find, but a quick grep through the source shows that this method isn't called from anywhere (maybe not too surprising since it's called "espaceHtml" instead of "escapeHtml" - not too obvious :-)
No, the problem is somewhere within the http://htmlparser.sourceforge.net/ library, which has bugs, but is abandoned now. I recall that we fixed at least one bug in it (for which luckily a patch had been posted on SourceForge).
I don't know if the method is used. Eclipse couldn't find references. However the method could be called from the "view" because java code is used there and I don't think eclipse can track that.
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler
Just to show that the library has other problems as well: This is the RSS feed for the Ranch Office forum (the link for which you can find on the forum home page). The entry for this topic starts with "When I post this sentence: >" - which has an extra closing angle bracket; that can be found in many RSS feed entries. It's trying to sanitize HTML by adding angle brackets where it thinks they're missing, but is thrown off by the generics notation, since that isn't nested in the same way as HTML/XML.
I had some posts that had an > at the end. I thought I had made a typo but now I know it was the library. I did a test run with the library version 1.5 (currently used by jforum) and I can confirm that the library is to blame.
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler
The snapshot version doesn't have a different architecture but my IDE thought it would be funny to mark valid imports as invalid. Now the bad news the snapshot version doesn't solve it Now I'm going to bed. It's 2.30 AM
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler
I've been thinking (to be honest I've been dreaming about the problem ). A simple solution would be to set "Disable HTML in this message" default to true because 99.9% of the posts is without HTML.
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler
That checkbox is based on the "Allow HTML" setting in your profile, so you can turn it off by default for all of your posts. Given that -thanks to UBB- there is really not much need for HTML posting, I think it makes sense to change the profile to not allow HTML by default for new accounts, though. Most people will probably leave it turned off and never notice the difference :-)