cubicweb #14804498 use xml_escape in req.build_url [rejected]

Am getting these unittest errors

AssertionError: [<type 'exceptions.AssertionError'> in esearch]invalid document: htmlParseEntityRef: expecting ';', line 1, column 317

when building simple URLs with build_url such as

<a href="http://testing.fr/cubicweb/view?page=1&vid=esearch">

I have to put xml_escape in front of build_url to get

<a href="http://testing.fr/cubicweb/view?page=1&amp;vid=esearch">

Could this be integrated in build_url or am I doing something wrong ?

prioritynormal
typebug
done in<not specified>
load0.000
load left0.000
closed by<not specified>