Skip to content
Snippets Groups Projects
Commit 09c0099a authored by llaffont's avatar llaffont
Browse files

Correction validation HTML5

parent ae6d5768
No related merge requests found
......@@ -51,7 +51,7 @@ class ZendAfi_View_Helper_ComboCategories extends ZendAfi_View_Helper_BaseHelper
* @return string
*/
protected function _getCategorySelectGroupForBib($bib, $category) {
$html = sprintf('<optgroup label="%s">', $bib->getLibelle());
$html = sprintf('<optgroup label="%s">', htmlentities($bib->getLibelle()));
$rootCategories = isset($category) ? $category->getBibRootCategories($bib) : [];
foreach ($rootCategories as $rootCategory) {
$html .= $this->_getLeveledCategoryOption($rootCategory, $category);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment