New parameter $convertHtmlEntities added to setValue function in Template class