Is there a way to represent a new line in a database text attribute?
Thanks
Hi José,
I think it depends on the database you are using. In SQL Server, these ones are identified by the CHAR(13) and the CHAR(10), like explained here.
In any case, you can expand the functionality in a WYSIWYG and ease of use by using the CK Editor, which saves the information as HTML. I think this is the standard today, and using the component makes it pretty easy.
Kind Regards,João
I need the instruction to break line already in the text attribute. CHAR(10), etc, only works outside the database.
CK Editor is not an option because I need to have already the text broken in lines (data coming from migration) and display it in a text area.
You can always do some pre / post processing turning the newlines into the database format before putting in the database / after fetching it from the database.
As for the CK Editor, there are ways of converting text into HTML, but then again, you know best the use case.