SimpleMachines/SMF2.1 — pull request #2586 by MissAllSunday (2014-12-07 18:29:23+00:00)
Title: Use preg_replace_callback on tags which map to tags which map to tags

There is a slippery /e modifier on html_to_bbc() function.

Either turn all of them to anonymous functions or move out the ones that have capturing groups and treat them separately, either way a foreach is still going to be needed.

I used a simple HTML sample to test it:
``` php
$t = '

Month
Save

January
$100
Sum: $180

lol

eh

';

print_r(html_to_bbc($t));
```

Signed-off-by: Suki