simple_html_dom::restore_noise PHP Method

restore_noise() public method

restore noise to html content
public restore_noise ( $text )
    function restore_noise($text)
    {
        while (($pos = strpos($text, '___noise___')) !== false) {
            $key = '___noise___' . $text[$pos + 11] . $text[$pos + 12] . $text[$pos + 13];
            if (isset($this->noise[$key])) {
                $text = substr($text, 0, $pos) . $this->noise[$key] . substr($text, $pos + 14);
            }
        }
        return $text;
    }