Page 1 of 1

Displaying formatted text

Posted: Mon May 28, 2012 7:31 am
by TeeTwo
I am trailing a rich edit widget in a php page. This works perfectly. To output I have a post action into a php file.
My problem is this:-
I have no problem at all when I run the files in WAMP but when I trial the same files online in a paid hosting site the received formatted text is transferred ok but the formatting is not acted on. The text is displayed plain.

I am puzzled why it should work in Wamp but not on my server. My host suggested I disable Mod_security in my C Panel. This I tried but to no avail. So any suggestions would be most welcomed. The widget I am trilling is Whizzygig. Strange name but works well.
Thanks in advance
Terry

Re: Displaying formatted text

Posted: Tue May 29, 2012 5:14 am
by TeeTwo
I found a solution the output had a lot of backslashes that Wamp ignored but the server did not. I solved the problem by using the function stripslashes. It is amazing how a simple solution can be found. Thought I would post to maybe help others