/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to tools.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-14 22:26:00 UTC
  • Revision ID: csa@dside.dyndns.org-20081014222600-4cwkermvefo7cjrq
Bringing back double click support

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
 
139
139
 
140
140
function xml_escape($message) {
141
 
    return htmlspecialchars($message, ENT_COMPAT, "UTF-8");
 
141
        /* HTMLSpecialChars will return empty string if non-unicode message
 
142
        is passed. */
 
143
    $msg = htmlspecialchars($message, ENT_COMPAT, "UTF-8");
 
144
    if ($msg) return $msg;
 
145
    return htmlspecialchars($message, ENT_COMPAT);
142
146
}
143
147
 
144
148
function translate($string) {