Jump to content

teamer

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

teamer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all i have text in database with the following stuff > and < and stuff like that . well guests enter text that is saved to the database , and when it is printed out i don't want it to be parsed so converting all HTML entities to > and < is enough . BUT i want to allow some HTML tags to be converted back to normal like <font size=4>text</font> so i wrote the following regex where $alowed_ones='font|b|center|i|a'; $data=preg_replace('/(<)('.$alowed_ones.')((\s)(.*))?(>)(.*)(<\/)('.$alowed_ones.')(>)/ims' , '<\\2\\3>\\7</\\9>', $data,-1); but for example if i $data was <center><a href="fF">Xx"</a></center> only the <center></center> is back to normal and the <a> tag is not parsed unless i run the preg_replace again !!! any way to do it without having to call it back ??? plz help
  2. thx guys well , what about the service in the site itself ?
  3. hi , here is my website http://roomp3.com did u like this site ? on a scale from 1 to 10 ... give it a mark (10 is highest) did you know this website before reading this topic ? thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.