Medros
-
How to add a DIV to this JS code
Oh wow markdown stipped the first examle. $content = "" + preg_replace('/\[img=?\]*(.*?)(\[\/img)?\]/e', '""', $content) + "
-
How to add a DIV to this JS code
There's a few easy ways to handle this. You could wrap your $content with a string " " + preg.... + " "; Or more simply add another line after $content. function embed_images($content) { $content = preg_replace(…