/** * Conveniance function that calls tao_helpers_Display::htmlize * * @param string $input The input string * @return string $output The htmlized string. */ function _dh($input) { return tao_helpers_Display::htmlize($input); }
/** * Build the script tag * @param array $attributes key/val to create tag's attributes * * @return the generated script tag */ private function buildScriptTag($attributes) { $amdScript = '<script id="' . self::LOADER_ID . '" '; foreach ($attributes as $attr => $value) { $amdScript .= $attr . '="' . \tao_helpers_Display::htmlize($value) . '" '; } return trim($amdScript) . '></script>'; }