/** * Escapes a value for output in a view script. * * @param mixed $var The output to escape. * * @return mixed The escaped value. */ public function escape($var, $sorten = false, $length = 40) { // use the helper htmlEscape method instead. return CostbenefitprojectionHelper::htmlEscape($var, $this->_charset, $sorten, $length); }
/** * Escapes a value for output in a view script. * * @param mixed $var The output to escape. * * @return mixed The escaped value. */ public function escape($var) { // use the helper htmlEscape method instead. return CostbenefitprojectionHelper::htmlEscape($var, $this->_charset); }
/** * Escapes a value for output in a view script. * * @param mixed $var The output to escape. * * @return mixed The escaped value. */ public function escape($var) { if (strlen($var) > 50) { // use the helper htmlEscape method instead and shorten the string return CostbenefitprojectionHelper::htmlEscape($var, $this->_charset, true); } // use the helper htmlEscape method instead. return CostbenefitprojectionHelper::htmlEscape($var, $this->_charset); }
?> </option> <?php foreach ($this->headers as $value => $option) { ?> <?php $selected = strtolower($option) == strtolower($title) || strtolower($option) == strtolower($name) ? 'selected="selected"' : ''; ?> <option value="<?php echo CostbenefitprojectionHelper::htmlEscape($value); ?> " class="required" <?php echo $selected; ?> ><?php echo CostbenefitprojectionHelper::htmlEscape($option); ?> </option> <?php } ?> </select> </div> </div> <?php } ?> <div class="form-actions"> <input class="btn btn-primary" type="button" value="<?php echo JText::_('COM_COSTBENEFITPROJECTION_IMPORT_CONTINUE'); ?>