Word Wrap
Replies 2
Hi Greg and Gavin,
The toHTML method in both BBCode classes has a $nr2br parameter that converts newlines to
tags:
This is used in the Parser::content() method:
The toHTML method in both BBCode classes has a $nr2br parameter that converts newlines to
tags:
if ($nr2br) $str = preg_replace_callback("/\n\r?/", function ($match) { return "<br/>"; }, $str);This is used in the Parser::content() method:
$text = $BBcode->toHTML($text, false, true); // true enables nl2br
- Before ask a question, read the documentation.
- 🎉 Featured as #1 product of the day on Product Hunt
- Please like in alternativeto.net 👍🏻
- ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
- <TextField>, my new CMS project designed by a passionate developer, for developers!
- My last project Fast⚡︎CMS, a Flat-File cms.
- I am currently busy 😫.
Suggested Topics

Fred
started New Flatboard UI, for or against?
Open Bar

248047c2
started solved Install errors - any pointers?
General Questions

kat@a82479f8
started solved it dosen't work with php version 8
Bug reports

RED-LINE@42796168
started [MINIMALISM] Thoughts on the main features of CMS
General Questions