Plugin Directory

Changeset 1302122


Ignore:
Timestamp:
12/07/2015 12:44:59 PM (10 years ago)
Author:
TrendMD
Message:

Trimming quotes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trendmd/trunk/trendmd.php

    r1302105 r1302122  
    125125        static function prepare_string($string)
    126126        {
    127             return json_encode(html_entity_decode(strip_tags($string), ENT_NOQUOTES, 'UTF-8'), JSON_HEX_APOS);
     127            $string =  json_encode(html_entity_decode(strip_tags($string), ENT_NOQUOTES, 'UTF-8'), JSON_HEX_APOS);
     128            return  trim($string,'"');
    128129        }
    129130
Note: See TracChangeset for help on using the changeset viewer.