Forum isnt following the BBcode
<p>My forum isnt following the bbcode. Aprostorphies and breaks especially arent working. 
I know its not an isse with the incude, because my smileys page works fine. Its just this page.
nl2br isnt working either.
can someone tell me Does my code look correct?</p>

<pre><code>&lt;?
function forumbb($content){ //define the function of bbcode 
$content = nl2br($content); //replaces returns with br's 
$match = array( 
'#\[sup\]#se', 
'#\[\/sup\]#se', 
'#rnrn#se', 
'#\[p\]#se', 
'#\[\/p\]#se', 
'#\[br\]#se', 
'#\[\br\]#se', 
'#\[b\]#se', 
'#\[\/b\]#se', 
'#\[i\]#se', 
'#\[\/i\]#se', 
'#\[u\]#se', 
'#\[\/u\]#se', 
'#\[left\]#se', 
'#\[\/left\]#se', 
'#\[right\]#se', 
'#\[\/right\]#se', 
'#\[center\]#se', 
'#\[\/center\]#se', 
'#\[\/font\]#se', 
'#\[fontc\=(.*?)s\=(.*?)f\=(.*?)\]#se', 
'#\[fontc\=(.*?)f\=(.*?)s\=(.*?)\]#se', 
'#\[fonts\=(.*?)c\=(.*?)f\=(.*?)\]#se', 
'#\[fonts\=(.*?)f\=(.*?)c\=(.*?)\]#se', 
'#\[fontf\=(.*?)c\=(.*?)s\=(.*?)\]#se', 
'#\[fontf\=(.*?)s\=(.*?)c\=(.*?)\]#se', 
'#\[fontc\=(.*?)f\=(.*?)\]#se', 
'#\[fontc\=(.*?)s\=(.*?)\]#se', 
'#\[fonts\=(.*?)f\=(.*?)\]#se', 
'#\[fonts\=(.*?)c\=(.*?)\]#se', 
'#\[fonts\=(.*?)\]#se', 
'#\[fontf\=(.*?)\]#se', 
'#\[fontc\=(.*?)\]#se', 
'#\[#se', 
'#\]#se', 
'#neoHTML#se', 
'#\*acara\*#se', 
'#\*aisha\*#se', 
'#\*blumaroo\*#se', 
'#\*bori\*#se', 
'#\*bruce\*#se', 
'#\*buzz\*#se', 
'#\*chia\*#se', 
'#\*cybunny\*#se', 
'#\*draik\*#se', 
'#\*eyrie\*#se', 
'#\*flotsam\*#se', 
'#\*gelert\*#se', 
'#\*gnorbu\*#se', 
'#\*grundo\*#se', 
'#\*hissi\*#se', 
'#\*jubjub\*#se', 
'#\*kacheek\*#se', 
'#\*kau\*#se', 
'#\*kiko\*#se', 
'#\*korbat\*#se', 
'#\*kougra\*#se', 
'#\*krawk\*#se', 
'#\*kyrii\*#se', 
'#\*lenny\*#se', 
'#\*lupe\*#se', 
'#\*SketchedNeo\*#se', 
'#\*meerca\*#se', 
'#\*ogrin\*#se', 
'#\*poogle\*#se', 
'#\*pteri\*#se', 
'#\*ruki\*#se', 
'#\*scorchio\*#se', 
'#\*shoyru\*#se', 
'#\*techo\*#se', 
'#\*tonu\*#se', 
'#\*usul\*#se', 
'#\*wocky\*#se', 
'#\*xweetok\*#se', 
'#\*yurble\*#se', 
'#\*zafara\*#se', 
'#\*candycane\*#se', 
'#\*aaa\*#se',
'#\*abigail\*#se',
'#\*boatswain\*#se',
'#\*cabinboy\*#se',
'#\*coltzan\*#se',
'#\*cook\*#se',
'#\*gunner\*#se',
'#\*hanso\*#se',
'#\*happiness\*#se',
'#\*illusen\*#se',
'#\*jazan\*#se',
'#\*jhudora\*#se',
'#\*lulu\*#se',
'#\*mate\*#se',
'#\*mrcoconut\*#se',
'#\*nox\*#se',
'#\*quartermaster\*#se',
'#\*rigger\*#se',
'#\*rower\*#se',
'#\*sloth\*#se',
'#\*swabbie\*#se',
'#\*angelpuss\*#se',
'#\*feepit\*#se',
'#\*jinjah\*#se',
'#\*kadoatery\*#se',
'#\*kadoatie\*#se',
'#\*larnikin\*#se',
'#\*meepit\*#se',
'#\*mootix\*#se',
'#\*pinchit\*#se',
'#\*slorg\*#se',
'#\*warf\*#se',
'#\*weewoo\*#se',
'#\*babypb\*#se',
'#\*baf\*#se',
'#\*bdf\*#se',
'#\*bef\*#se',
'#\*bff\*#se',
'#\*bgc\*#se',
'#\*blf\*#se',
'#\*bwf\*#se',
'#\*carrot\*#se',
'#\*codestone\*#se',
'#\*dariganpb\*#se',
'#\*dubloon\*#se',
'#\*dung\*#se',
'#\*faeriepb\*#se',
'#\*mspp\*#se',
'#\*piratepb\*#se',
'#\*sock\*#se',
'#\*suap\*#se',
'#\*catfish\*#se',
'#\*star\*#se',
'#\*swagbag\*#se',
'#\*0.o.0\*#se',
'#\*bauble\*#se',
'#\*flower\*#se',
'#\*ghost\*#se',
'#\*holly\*#se',
'#\*mistletoe\*#se',
'#\*present\*#se',
'#\*pumpkin\*#se',
'#\*rednose\*#se',
'#\*santa\*#se',
'#\*snowflake\*#se',
'#\*snowman\*#se',
'#\*tombstone\*#se',
'#\*witch\*#se',
'#\*xmastree\*#se',
'#\*altador\*#se',
'#\*brightvale\*#se',
'#\*darigan\*#se',
'#\*faerieland\*#se',
'#\*hauntedwoods\*#se',
'#\*kikolake\*#se',
'#\*krawkisland\*#se',
'#\*kreludor\*#se',
'#\*lostdesert\*#se',
'#\*maraqua\*#se',
'#\*meridell\*#se',
'#\*moltara\*#se',
'#\*mysteryisland\*#se',
'#\*rooisland\*#se',
'#\*shenkuu\*#se',
'#\*terrormountain\*#se',
'#\*tyrannia\*#se',
'#\*virtupets\*#se',
'#\*angry\*#se',
'#\*clap\*#se',
'#\*complain\*#se',
'#\*cough\*#se',
'#\*cry\*#se',
'#\*facepalm\*#se',
'#\*lol\*#se',
'#\*unsure\*#se',
'#\*violin\*#se',
'#\*yarr\*#se',
'#:\)#se',
'#;\)#se',
'#:\(#se',
'#:\*#se',
'#:D#se',
'#:K#se',
'#:o#se',
'#:P#se',
'#B\)#se',
'#0:\-\)#se',
'#\*snowager\*#se',
'#\*turmaculus\*#se',
); //codes used in posts 
$replace = array( 
"'&lt;sup&gt;'", 
"'&lt;/sup&gt;'", 
"''", 
"'&lt;p&gt;'", 
"'&lt;/p&gt;'", 
"'&lt;br&gt;'", 
"'&lt;/br&gt;'", 
"'&lt;b&gt;'", 
"'&lt;/b&gt;'", 
"'&lt;i&gt;'", 
"'&lt;/i&gt;'", 
"'&lt;u&gt;'", 
"'&lt;/u&gt;'", 
"'&lt;p style=\"text-align:left;\"&gt;'", 
"'&lt;/p&gt;'", 
"'&lt;p style=\"text-align:right;\"&gt;'", 
"'&lt;/p&gt;'", 
"'&lt;center&gt;'", 
"'&lt;/center&gt;'", 
"'&lt;/font&gt;'", 
"'&lt;font color=\'\\1\' size=\'\\2\' face=\'\\3\'&gt;'",
"'&lt;font color=\'\\1\' face=\'\\2\' size=\'\\3\'&gt;'",
"'&lt;font size=\'\\1\' color=\'\\2\' face=\'\\3\'&gt;'",
"'&lt;font size=\'\\1\' face=\'\\2\' color=\'\\3\'&gt;'",
"'&lt;font face=\'\\1\' color=\'\\2\' size=\'\\3\'&gt;'",
"'&lt;font face=\'\\1\' size=\'\\2\' color=\'\\3\'&gt;'",
"'&lt;font color=\'\\1\' face=\'\\2\'&gt;'",
"'&lt;font color=\'\\1\' size=\'\\2\'&gt;'",
"'&lt;font size=\'\\1\' face=\'\\2\'&gt;'",
"'&lt;font size=\'\\1\' color=\'\\2\'&gt;'",
"'&lt;font size=\'\\1\'&gt;'",
"'&lt;font face=\'\\1\'&gt;'",
"'&lt;font color=\'\\1\'&gt;'",
"' '",
"' '",
"'This is how your post will look on the Neoboards.'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/acara.gif\' &gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/aisha.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/blumaroo.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bori.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bruce.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/buzz.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/chia.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/cybunny.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/draik.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/eyrie.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/flotsam.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/gelert.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/gnorbu.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/grundo.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/hissi.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/jubjub.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kacheek.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kau.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kiko.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/korbat.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kougra.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/krawk.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kyrii.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/lenny.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/lupe.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/SketchedNeo.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/meerca.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/ogrin.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/poogle.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/pteri.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/ruki.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/scorchio.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/shoyru.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/techo.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/tonu.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/usul.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/wocky.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/xweetok.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/yurble.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/zafara.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/candycane.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/aaa.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/abigail.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/boatswain.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/cabinboy.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/coltzan.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/cook.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/gunner.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/hanso.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/happinessfaerie.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/illusen.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/jazan.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/jhudora.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/lulu.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/mate.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/mrcoconut.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/nox.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/quartermaster.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/rigger.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/rower.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/sloth.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/swabbie.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/angelpuss.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/feepit.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/jinjah.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kadoatery.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kadoatie.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/larnikin.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/meepit.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/mootix.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/pinchit.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/slorg.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/warf.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/weewoo.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/babypb.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/baf.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bdf.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bef.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bff.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bgc.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/blf.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bwf.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/carrot.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/codestone.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/dariganpb.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/dubloon.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/dung.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/faeriepb.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/mspp.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/piratepb.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/sock.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/suap.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/catfish.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/star.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/swagbag.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/0.o.0.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/bauble.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/flower.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/ghost.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/holly.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/mistletoe.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/present.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/pumpkin.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/rednose.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/santa.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/snowflake.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/snowman.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/tombstone.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/witchhat.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/xmastree.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/altador.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/brightvale.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/darigan.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/faerieland.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/hauntedwoods.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kikolake.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/krawkisland.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kreludor.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/lostdesert.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/maraqua.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/meridell.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/moltara.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/mysteryisland.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/rooisland.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/shenkuu.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/terrormountain.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/tyrannia.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/virtupets.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/angry.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/clap.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/complain.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/cough.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/cry.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/facepalm.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/lol.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/unsure.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/violin.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/yarr.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/smileys/smiley.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/winking.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/sad.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/kisskiss.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/grin.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/vampire.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/oh.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/tongue.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/sunglasses.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/angel.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/snowager.gif\' \&gt;'",
"'&lt;img src=\'http://images.neopets.com/neoboards/smilies/turmaculus.gif\' \&gt;'",
); //replacements 
return preg_replace($match, $replace, $content); //match, and replace 
} //end the function 
?&gt; 
</code></pre>
