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="">

I have to put xml_escape in front of build_url to get

<a href=";vid=esearch">

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

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