includes/functions.php
changeset 137 3bce0c320e80
parent 132 0ae1b281a884
child 142 ca9118d9c0f2
equal deleted inserted replaced
136:f2ee42f026f7 137:3bce0c320e80
  2831   {
  2831   {
  2832     $html = str_replace("{DONT_STRIP_ME_NAKED:$seed:$i}", "<{$matches[1][$i]}{$matches[2][$i]}>{$matches[3][$i]}</{$matches[4][$i]}>", $html);
  2832     $html = str_replace("{DONT_STRIP_ME_NAKED:$seed:$i}", "<{$matches[1][$i]}{$matches[2][$i]}>{$matches[3][$i]}</{$matches[4][$i]}>", $html);
  2833   }
  2833   }
  2834   
  2834   
  2835   // Which tags to strip - you can change this if needed
  2835   // Which tags to strip - you can change this if needed
  2836   $strip_tags = Array('pre', 'script', 'style', 'enano:no-opt');
  2836   $strip_tags = Array('pre', 'script', 'style', 'enano:no-opt', 'textarea');
  2837   $strip_tags = implode('|', $strip_tags);
  2837   $strip_tags = implode('|', $strip_tags);
  2838   
  2838   
  2839   // Strip out the tags and replace with placeholders
  2839   // Strip out the tags and replace with placeholders
  2840   preg_match_all("#<($strip_tags)(.*?)>(.*?)</($strip_tags)>#is", $html, $matches);
  2840   preg_match_all("#<($strip_tags)(.*?)>(.*?)</($strip_tags)>#is", $html, $matches);
  2841   $seed = md5(microtime() . mt_rand()); // Random value used for placeholders
  2841   $seed = md5(microtime() . mt_rand()); // Random value used for placeholders