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

Ben@84171e7c
started solved Extend Session Logout Time
Feature Requests

ebd6d
started Reverse Post Order
General Questions

Fred
started Flatboard 1.0 RC2
Announcements

Fan#17562
started solved < and > signs in code
General Questions