As I worked on ticket #543 (which is closed now because it was invalid), I noticed the following bug :
having that string in a property file :
test = My title with entities & others (10 > 2<5)
and having a controller method doing this :
function index() {
$rep = $this->getResponse('html');
$rep->title = jLocale::get('test.test');
}
I'm getting the following HTML source code :
<title>My title with entities &amp; others (10 &gt; 2&lt;5)</title>
I'm getting the same result if I use the escxml modifier in the HTML body.
So I think that the "&" char must be converted to "&", except if it is followed by chars that will match something like
([a-z]+|#[0-9]+); // will match things like é and é
I think it's the only way to safely allow entities use in jLocale strings.
Is that report valid, or should I forget about it ?