• How could one do that? I know it involves some regexp, but i absolutely have no idea how to make it possible. Thanks in advance.

Viewing 1 replies (of 1 total)
  • I have found this little code block that maybe will do what you want. I found it in relation to the ratings plug in:

    /* Little PostRatings Mod */
      /* Replaces all <div> tags with <span> tags to fix display problems on some themes */
                   ob_start();
                   the_ratings();
                   $remove_divs = ob_get_contents();
                   ob_end_clean();
                   echo str_replace('div', 'span', $remove_divs);

Viewing 1 replies (of 1 total)
  • The topic ‘Replace *text* with <span>text</span> in post’s title’ is closed to new replies.