There is a goal to add poems to the database using PHP. The question is how to preserve the original text formatting in the database or how to get the data from the database in the original format using PHP?
Currently in block
I sit behind bars in a wet dungeon. Fed up in captivity, the eagle is young, My sad friend, flapping his wing, Blood food pecks under the window,
I need it like this
I sit behind bars in a wet dungeon.
The young eagle fed up in captivity
My sad friend, flapping his wing,
Bloody food pecks under the window
htmlmarkup and your problem will be solved. - Dan the Hatnl2br()Maybe this will help you - ArchDemonnl2br()th line before being thrown into the base. Well, or as an option - fasten to the text field someредакторthat rewrites on the machine inhtml. - Dan the Hat