Thread:Project:Support desk/Prevent html entity encoding in output of tag extension/reply (2)

Well ideally we'd rather not have people be outputting js from tag extensions, and instead use ResourceLoader to output js. There should not be any reason to put the JS inline with the extension output.

entity reference normalisation is done after all strip markers are unstripped. regardless of the return value of your parser extension, its still going to touch the entities. You could of course write the js without using the character '&amp;' (Using "\x26" in strings and nested if instead of &amp;&amp;), but really MediaWiki is designed to have JS loaded by the resource loader.