/adei/trunk

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

« back to all changes in this revision

Viewing changes to tools.php

  • Committer: Suren A. Chilingaryan
  • Date: 2018-07-12 03:26:38 UTC
  • Revision ID: csa@suren.me-20180712032638-fte2uqhf6bl0uczj
Just skip invalid characters in xml_escape if wrong encoding is configured

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        is passed. */
158
158
    $msg = htmlspecialchars($message, ENT_COMPAT, "UTF-8");
159
159
    if ($msg) return $msg;
160
 
    return htmlspecialchars($message, ENT_COMPAT);
 
160
    return htmlspecialchars($message, ENT_COMPAT|ENT_SUBSTITUTE);
161
161
}
162
162
 
163
163
function translate($string) {