Cleaning and minimified version
setHtml factorisation
Fixed : null object
Factorisation set html value