PHP adding slashes before my apostrophes?

  • Thread starter Thread starter skinnypspplayer
  • Start date Start date
S

skinnypspplayer

Guest
I made a form where users can post content onto the site and I'm having a problem. After each aposstrophe, PHP or something else is adding 3 \'s before it. So it shows up like, say for instance, "What\\'s up?". How can I get rid of this so when it posts the content on a page, it's just "What's up?". I already have 'nl2br' or convert line breaks to <br>'s but I've been trying to find a way to take away those \\'s. Any help?

Oh and if there is another nl2br type thing for this, how do I add it in? I already have..

<?php
echo nl2br($row['articletext']);
?>

Would I just do 'nl2br,whatever' or what? Thanks for any help!
 
Back
Top