Changeset 723


Ignore:
Timestamp:
May 3, 2020 11:04:09 PM (4 years ago)
Author:
anonymous
Message:

Hotfix so oTxt() works on non-unicode text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r722 r723  
    189189
    190190    // Make converted ampersand entities into normal ampersands (they will be done manually later) to retain HTML entities.
    191     $search['retain_ampersand']     = '/&/u';
     191    $search['retain_ampersand']     = '/&/';
    192192    $replace['retain_ampersand']    = '&';
    193193
    194194    if ($preserve_html) {
    195195        // Convert characters that must remain non-entities for displaying HTML.
    196         $search['retain_left_angle']       = '/</u';
     196        $search['retain_left_angle']       = '/</';
    197197        $replace['retain_left_angle']      = '<';
    198198
    199         $search['retain_right_angle']      = '/&gt;/u';
     199        $search['retain_right_angle']      = '/&gt;/';
    200200        $replace['retain_right_angle']     = '>';
    201201
    202         $search['retain_single_quote']     = '/&#039;/u';
     202        $search['retain_single_quote']     = '/&#039;/';
    203203        $replace['retain_single_quote']    = "'";
    204204
    205         $search['retain_double_quote']     = '/&quot;/u';
     205        $search['retain_double_quote']     = '/&quot;/';
    206206        $replace['retain_double_quote']    = '"';
    207207    }
Note: See TracChangeset for help on using the changeset viewer.