src/RNRocks/CrawlerCommand.php
/**
     * Helper method to strip some not wanted characters from the given $string.
     *
     * @param $string
     * @return string
     */
Helper method to strip some not wanted characters from the given $string.
@param $string
@return string
Helper method to strip some not wanted characters from the given $string . @param $string @return string
private function strip($string)
    {
        $string = html_entity_decode($string);
        $string = preg_replace('#\s{2,}#m', ' ', $string);
        $string = str_replace(['"', "'", "\n", '#'], '', $string);
        return $string;
    }
private function strip ( $ string ) { $ string = html_entity_decode ( $ string ) ; $ string = preg_replace ( '#\s{2,}#m' , ' ' , $ string ) ; $ string = str_replace ( [ '"' , " ' " , " \n " , '#' ] , '' , $ string ) ; return $ string ; }
Helper method to strip some not wanted characters from the given $string.
Helper method to strip some not wanted characters from the given $string .