Reworked patchHTMLElementsConfigurator.php [ci skip]