roeyhaim Posted January 7, 2011 Share Posted January 7, 2011 Hello, i have a ckeditor on my site and when i try to put text on center its show as i want on the editor but when i save it, it save as: <h1 style=\"text-align: center;\"> Hello</h1> and it's not on the center. any ideas how to fix it? Quote Link to comment Share on other sites More sharing options...
ZulfadlyAshBurn Posted January 23, 2011 Share Posted January 23, 2011 you have Magic quotes enabled. you to disable it. Create a .htaccess file on the folder and add this line: php_flag magic_quotes_gpc off Quote Link to comment Share on other sites More sharing options...
roeyhaim Posted January 23, 2011 Author Share Posted January 23, 2011 but when i add this line my whole web site not working. Error: 500 internal server error Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted January 23, 2011 Share Posted January 23, 2011 If you are able to change your php.ini file, change the directive magic_quotes_gpc = On to Off. Otherwise you'll need your script to check if get_magic_quotes_gpc() returns TRUE, and if so, run the data through stripslashes() before escaping it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.