* @copyright 2017 Stud.IP Core-Group * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @category Stud.IP * @since 4.1 * */ class DataFieldTextmarkupi18nEntry extends DataFieldTextareai18nEntry { protected $template = 'textmarkupi18n.php'; /** * Sets the value from a post request * * @param mixed $submitted_value The value from request */ public function setValueFromSubmit($submitted_value) { array_walk($submitted_value, 'Studip\Markup::purifyHtml'); parent::setValueFromSubmit($submitted_value); } /** * Returns the display/rendered value of this datafield * * @param bool $entities Should html entities be encoded (defaults to true) * @return String containg the rendered value */ public function getDisplayValue($entities = true) { if ($entities) { return formatReady($this->getValue()); } return $this->getValue(); } }