Safe BBCode to HTML Parser Script for IMG tag

Closed

I need my script edited and improved to parse our user's forum signatures.

AT THE MOMENT IT IS:

$simple_search = array(

'/\[b\](.*?)\[\/b\]/is',

'/\[i\](.*?)\[\/i\]/is',

'/\[u\](.*?)\[\/u\]/is',

'/\[center\](.*?)\[\/center\]/is',

'/\[img\](.*?)\[\/img\]/is',

'/\[font\=(.*?)\](.*?)\[\/font\]/is',

'/\[size\=(.*?)\](.*?)\[\/size\]/is',

'/\[color\=(.*?)\](.*?)\[\/color\]/is',

);

$simple_replace = array(

'$1',

'$1',

'$1',

'$1',

'',

'$2',

'$2',

'$2',

);

// Do simple BBCode's

$str = preg_replace ($simple_search, $simple_replace, $str);

I need this secured and improved ASAP

Skills: Javascript, PHP

See more: simple forum php script, str, parse html, img, html parser, javascript html parse, bbcode html, html img, parse array php, parse html javascript, bbcode html php, html bbcode, html parse php, parse javascript, php parse array, parse array, html font color, html parse, javascript parser, php html array, php html parse, php html bbcode, javascript array php array, html bbcode php, simple forum script

Project ID: #4872136

3 freelancers are bidding on average $100 for this job

adnanselimovitz

Can start now.

$105 USD in 1 day
(11 Reviews)
4.6
uflixdesign

Expert in PHP & REGEXP Techniques, here. Check PM

$90 USD in 2 days
(6 Reviews)
3.3
LVYwyeMtIXCd

Hi we are freelance software developers. If you contact us, we can give a quote and we can discuss further details of the project. w w w . sol v e r . i o

$155 USD in 3 days
(0 Reviews)
0.0
MnemonicPunk

Hello there, So far I see only 2 security problems. - It is possible to directly inject HTML into signatures (you may already be filtering that in another part of the script not posted here) - Is is possible to caus More

$105 USD in 7 days
(0 Reviews)
0.0