0

Hi Everyone, I have a strange problem with how my content is being displayed,

I keep seeing \'s throughout my content that is being displayed from my database.

I have tried the following but none seem to be helping me.

                            $ball = htmlspecialchars($row->twh_ball);
                            $ball = str_replace("`", "", $ball);
                            $ball = str_replace('"', '"', $ball);
                            $ball = nl2br($ball);

Any help would be much appreciated

3
Contributors
2
Replies
18
Views
3 Years
Discussion Span
Last Post by diafol
0

As jst...

You don't mention what is being stored in the DB.
What output are you hoping to get out to the screen?

That character is html-encoded single quote ('), but for some reason with a backslash in front of it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.