preg_replace help needed

Discussion in 'PHP' started by amorph, Oct 19, 2007.

  1. #1
    I'm building a function that converts html to xhtml. I built a nice array of characters and another one with the corresponding replacements. How do I go and replace everything that is not alphanumeric and also not in the array of allowed characters with nothing ('') ?
     
    amorph, Oct 19, 2007 IP
  2. amorph

    amorph Peon

    Messages:
    200
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Never mind....I think I found something :p
     
    amorph, Oct 19, 2007 IP