ZenphotoCMS Forum
New line to HTML br? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: New line to HTML br? (/thread-13068.html)



New line to HTML br? - wibbi - 2018-03-08

I have already asked in another forum, what about the line breaks in the description?
Currently no \n are converted to ```

What helps?




New line to HTML br? - wibbi - 2018-03-08

found




New line to HTML br? - wibbi - 2018-03-08

Question: Does this conflict with newly saved descriptions?




New line to HTML br? - wibbi - 2018-03-08

OK, i have test it.
Zenphoto don't save line breaks as ```


But, for what is this?

This don't work with line breaks.




New line to HTML br? - acrylian - 2018-03-08

`outputs the album description as saved. Zenphoto generally does no output processing. For formatting use plain HTML, for example by using the default plugin TinyMCE4. If you don't want to use that, you need to format the output just like you do vianl2br` or whatever else on the theme side.




New line to HTML br? - wibbi - 2018-03-08

What's the difference between
getAlbumDesc()
and
printAlbumDesc()
except "echo"?




New line to HTML br? - wibbi - 2018-03-08

OK, i have found it in the docs.