 Member #: 204 Rank: User - (50) Since: 09/16/06 Posts: 53 From: Florida
|
Well ive been
creating a BB
code for my
site and well I
got some but
Its not very
what you say
effective, it
works but I
want to make
sure It doesnt
enable html
code but I dont
want it to
interfere with
code to html
programming
incase for like
giving
examples? so
far I got
this.
Code:
$rep =
str_replace('&l
t;script>','
',$rep);
$rep =
str_replace('&l
t;/script>',
'',$rep);
$rep =
str_replace('&l
t;script','',$r
ep);
$rep =
str_replace('&l
t;/table>','
',$rep);
$rep =
str_replace('&l
t;table','',$re
p);
$rep =
str_replace('&l
t;table','',$re
p);
$rep =
str_replace('&l
t;b>','',$re
p);
$rep =
str_replace('&l
t;/b>','',$r
ep);
$rep =
str_replace('&l
t;i>','',$re
p);
$rep =
str_replace('&l
t;/i>','',$r
ep);
$rep =
str_replace('&l
t;img','',$rep)
;
$rep =
str_replace('&l
t;u>','',$re
p);
$rep =
str_replace('&l
t;/u>','',$r
ep);
$rep =
str_replace('&l
t;fieldset','',
$rep);
$rep =
str_replace('&l
t;div','',$rep)
;
$rep =
str_replace('&l
t;legend','',$r
ep);
$rep =
str_replace('&l
t;b>','',$re
p);
$rep =
str_replace('','<b>',
$rep);
$rep =
str_replace('
b>','</b>
',$rep);
$rep =
str_replace('[i
mg]','<img
src="',$re
p);
$rep =
str_replace('[/
img]','"&g
t;',$rep);
$rep =
str_replace('','<i>',
$rep);
$rep =
str_replace('
i>','</i>
',$rep);
$rep =
str_replace('[u
]','<u>',
$rep);
$rep =
str_replace('[/
u]','</u>
',$rep);
$rep =
str_replace('&a
mp;','&
',$rep);
$rep =
str_replace('&q
uot;','&quo
t;',$rep);
$rep =
str_replace('[u
rl=(','<a
href="',$r
ep);
$rep =
str_replace(')]
','">',
$rep);
$rep =
str_replace('[/
url]','</a&g
t;',$rep);
woohoo! |