How to cut off string after the first line in the paragraph April 9, 2023 by Tarik var firstLine = theString.split('\n')[0];