treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Medros

  • How to add a DIV to this JS code

    Oh wow markdown stipped the first examle. $content = "" + preg_replace('/\[img=?\]*(.*?)(\[\/img)?\]/e', '""', $content) + "
    Comment by Medros October 2012 permalink
  • 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(&#…
    Comment by Medros October 2012 permalink