The stripslashes function enables us to remove the escape characters before apostrophes in a string. Post navigation How do I escape data before storing it in the database? How can we automatically escape incoming data?