5 years, 7 months ago
Ok i find a solution i just change flag /i for flag /s
$content = preg_replace("/<code>.+?<\/code>/S", "", $content);
But i have a question it is correct solution? No performace issue ?
Thanks, but it work only if text between code is on one row. If someune post log test separated by rows, then didnt work properly.
Any idea how to fix ?
Follow bbPress on Twitter •
Contact Us •
Terms of Service