在mysql中的textarea中保存文本时如何保存换行符?

I am saving text in a textarea in a mysql database, however line breaks aren't conserved.

The issue is, the text will be used in a tinyMCE editor, so nl2br won't work.

How can I conserve line breaks?

New lines are always preserved. in database data should be saved with new line char in it