コード例 #1
0
ファイル: globalHelpers.php プロジェクト: oat-sa/tao-core
/**
 * 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);
}
コード例 #2
0
ファイル: AmdLoader.php プロジェクト: oat-sa/tao-core
 /**
  * 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>';
 }