Re: [PHP] Differentiate Line breaks and Paragraphs

2012-11-02 Thread Stuart Dallas
On 2 Nov 2012, at 19:32, Simon Dániel wrote: > Is there a way to make difference between line breaks and paragraphs, when > I save a text to a database from a user input? The new line characters (\n, > \r) are not too consequent to determine when did the user only one new line > or more new lines

[PHP] Differentiate Line breaks and Paragraphs

2012-11-02 Thread Simon Dániel
Hi, Is there a way to make difference between line breaks and paragraphs, when I save a text to a database from a user input? The new line characters (\n, \r) are not too consequent to determine when did the user only one new line or more new lines. (Some clients make only \n or \r, some others ma