0

When we make a post to our site it looks fine but when we view the post we see a bunch of \r\n.

We are told that we should use something like

str_replace("\r\n","<br/>",$YOUR_VAR)

in order to stop this.

Here is my question is the above correct? If so how would we right it out and where would we put it.

We are uncertain if we can just add it to our header file or if it needs to be in a specific file such as the file that outputs the text and so on.

If you guys can give some details and such it would be greatly appreciated.

Thank you.

3
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by valonesal
0

If that would be more appropriate that would be great but how would I go about using it on our site?

0

To further clarify we dont want to replace the \r\n with something else we simple do not want it to display anything.

0

Where would we put it? In the header or where?

Thanks for the help.

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.