Gaetan Lord wrote:
The function receive template variables that create and return an html form. In this form returned, I have a small javascript that contains "&". All the & are converted by & which break the html code.
Are you providing correct entities? MediaWiki shouldn't escape & if an entity follows. Raw & not on entities are invalid (X)HTML.