I'm currently using the following code to allow bolded posts on my forum:
$str = preg_replace('#<b>(.*?)</b>#i', '<b>$1</b>', $str);
Which works fine, unless the bold tags span several lines.
For example:
<b>Test Test</b>
- Works Fine
<b>Test
Test</b>
- Does not work.
I'm at a loss as to what could be causing this, and at more of a loss as to how to fix it.
Any thoughts?