BBcode -> Spip 29 Jun 2003 in Spip Ce convertisseur a était écrit pour les besoin de Battle Factory Vous pouvez l’utiliser online à cette adresse: http://noplay.net/~noplay/bbspip.php ou utiliser cette fonction dans vos scripts: // Thanks to LAURENT STEPHANE ([email protected]) function spip($str) * $str = stripslashes($str); $str = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","[\\2\](\\1)",$str); $str = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]","[\\2\](\\1)",$str); $str = str_replace("[b]","\{\{",$str); $str = str_replace("[/b]","\}\}",$str); $str = str_replace("[i]","{",$str); $str = str_replace("[/i]","}",$str); $str = str_replace("[center]","**",$str); $str = str_replace("[/center]","**",$str); $str = str_replace("[url]","",$str); $str = str_replace("[/url","]",$str); $str = str_replace("[img]","",$str); $str = str_replace("[/img","]",$str); $str = str_replace("[code]"," <figure class="highlight"><pre><code class="language-bash" data-lang="bash"><span></span><span class="s2">",</span><span class="nv">$str</span><span class="s2">); </span> <span class="nv">$str</span><span class="s2"> = str_replace("</span><span class="o">[</span>/code<span class="o">]</span><span class="s2">","</span></code></pre></figure> ",$str); return $str; }