protected function clearCondition($source)
    {
        $line = $this->getStringBetween($source, '{%', '%}');
        if (strlen($line) > 0) {
            return str_replace(['&#39;', '&nbsp;'], ["'", ' '], $source);
        }
        return $source;
    }
protected function clearCondition($source)
    {
        $line = $this->getStringBetween($source, '{%', '%}');
        if (strlen($line) > 0) {
            return str_replace(['&#39;', '&nbsp;'], ["'", ' '], $source);
        }
        return $source;
    }
protected function clearCondition ( $ source ) { $ line = $ this -> getStringBetween ( $ source , '{%' , '%}' ) ; if ( strlen ( $ line ) > 0 ) { return str_replace ( [ '&#39;' , '&nbsp;' ] , [ "'" , ' ' ] , $ source ) ; } return $ source ; }
clear conditions in notification

@param String $source
@return String
clear conditions in notification