diff --git a/wwwroot/includes/qcodo/_core/qform/QListBoxBase.class.php b/wwwroot/includes/qcodo/_core/qform/QListBoxBase.class.php index 03156e89..1cb32082 100644 --- a/wwwroot/includes/qcodo/_core/qform/QListBoxBase.class.php +++ b/wwwroot/includes/qcodo/_core/qform/QListBoxBase.class.php @@ -17,6 +17,8 @@ abstract class QListBoxBase extends QListControl { protected $strLabelForRequiredUnnamed; protected $objItemStyle = null; + protected $blnHtmlEntities = true; + // BEHAVIOR protected $strSelectionMode = QSelectionMode::Single; @@ -92,7 +94,7 @@ protected function GetItemHtml($objItem, $intIndex) { $intIndex, ($objItem->Selected) ? 'selected="selected"' : "", $objStyle->GetAttributes(), - QApplication::HtmlEntities($objItem->Name) + ($this->blnHtmlEntities) ? QApplication::HtmlEntities($objItem->Name) : $objItem->Name ); return $strToReturn; @@ -186,7 +188,8 @@ public function __get($strName) { case "LabelForRequired": return $this->strLabelForRequired; case "LabelForRequiredUnnamed": return $this->strLabelForRequiredUnnamed; case "ItemStyle": return $this->objItemStyle; - + case "HtmlEntities": return $this->blnHtmlEntities; + // BEHAVIOR case "SelectionMode": return $this->strSelectionMode; @@ -232,6 +235,14 @@ public function __set($strName, $mixValue) { $objExc->IncrementOffset(); throw $objExc; } + case "HtmlEntities": + try { + $this->blnHtmlEntities = QType::Cast($mixValue, QType::Boolean); + break; + } catch (QInvalidCastException $objExc) { + $objExc->IncrementOffset(); + throw $objExc; + } // BEHAVIOR case "SelectionMode":