I have a text-editor (CKEditor one) whereby am retrieving all the texts (which are in 3 paragraphs), in a single string variable, using Java codes.
However, all the 3 paragraphs being retrieved have leading spaces, and I want to remove them for display purposes. How can I do so, using this single variable to hold all the texts, and keeping them formatted on 3 different lines?
Example is (from the CKEditor source)
<p>This is line 1</p>
<p>This is line 2</p>
<p>This is line 3</p>