Jump to content

Trouble correctly showing apostrophes when include()ing file


stickynote427

Recommended Posts

I made from scratch a form that will allow me to post news on my home page (a bit like a blog). I can successfully write data to the file I want to write data to, but if my news/blog post contains an apostrophe ('), it is written to the file as \' instead of the apostrophe by itself. I've tried using strtr() to replace \' with an apostrophe alone, but with no success.

 

How should I do this?

 

Any information is helpful.

 

Thanks.

Blake

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.