public static function getHiddenFormHTML($action, $commentaire, $buttonText) { $htmlCode = FormManager::beginForm("POST", $action); $htmlCode .= FormManager::addHiddenInput("Contenu", "Contenu", HTMLUtilities::decode($commentaire->getContenu())); $htmlCode .= '<div class="submitWrapper">'; $htmlCode .= FormManager::addSubmitButton(); $htmlCode .= '</div>'; $htmlCode .= FormManager::endForm($buttonText); return $htmlCode; }