Guest User

Untitled

a guest
Mar 21st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // restore noise to html content
  2. function restore_noise($text) {
  3. while (($pos=strpos($text, '___noise___'))!==false) {
  4. $key = '___noise___'.$text[$pos+11].$text[$pos+12].$text[$pos+13];
  5. if (isset($this->noise[$key]))
  6. $text = substr($text, 0, $pos).$this->noise[$key].substr($text, $pos+14);
  7. }
  8. return $text;
  9. }
Add Comment
Please, Sign In to add comment