how to remove extra whitespace or a paragraph tag generated by ckeditor?

Posted by user66862 on Programmers See other posts from Programmers or by user66862
Published on 2012-10-05T05:58:04Z Indexed on 2012/10/05 9:48 UTC
Read the original article Hit count: 116

Filed under:

I am using CK editor to post the content. When I just type a simple text manually, It just appears as it was.But the problem is when I copy the test from other websites like wikipedia, an empty paragraph is rendered in the beginning of the string, which is making my page look odd. I have tried using trim,and preg_replace. But I did not find any solution.

Please suggest some method to overcome this issue.. Thanks

© Programmers or respective owner

Related posts about php