[eluser]benfike[/eluser]
I have an auto-blockquote function. I want that the system transform a text between “” into blockquote only if the text consist of more than 21 characters. But now this dont work.
Code:
function make_blockquote($str){
$data = preg_replace('/"([^"]{21,})"/i', '<blockquote>$1</blockquote>', $str);
return $data;
}