string - PHP not rendering newlines in content retrieved from database -


My own CMS is going to be complete, but for some reason the article does not display new lines in the viewing page content Is derived from the database.

After creation, new lines look fine in the "Edit Post" window so that they can be saved correctly.

I am passing the content through htmlspecialchars () when it is retrieved what could be wrong?

Thank you, Illiante

You get a $ Content = nl2br ($ Content) Call to convert real line breaks to HTML line breaks after your HTML.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -