kordix
473
5
Laravel

HTML line break interpretation saved in SQL, from textarea

Posted 1 year ago by kordix

I want to save line breaks or other html intepretation in my CRUD application, f.e. "Line 1 < br> Line 2" should make a new line or "< b>bold text< /b>"

I also tried special chars like \n &br; They disappear when i write them to sql.

I may try WYSIWYG editor but for my use it would just interpret html.

I suppose solution is easy but I can't find it.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.