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

RED-LINE@42796168
started solved plugin Gitter and scrollToTop have useless file
Bug reports

AlexanderLiebrecht@5e3cf8af
started plugin Small Fixes to the Google Tools Plugin
General Questions

711c776b
started Ability to Create Child Themes
Feature Requests

http://cmstips.com/
started solved multi languages flatboard
Feature Requests