Extra nl2br's in Guestbook
Posted: Thu Sep 14, 2006 9:29 pm
I am using the Guestbook to design an online confessional. See http://www.xxxx.com/index.php?serendipi ... onfessions .
PROBLEM: posters are getting an extra line break.
SITUATION:
1. Anyway, the event_plugin can be configured to add a line break after x many letters. I don't really want that so I have it set at 20000.
2. I've got Markup: NL2BR plugin installed and working with comments (absolutely essential that this remain.)
3. I believe that the problem is in the first line of code that follows
Suggestions?
PROBLEM: posters are getting an extra line break.
SITUATION:
1. Anyway, the event_plugin can be configured to add a line break after x many letters. I don't really want that so I have it set at 20000.
2. I've got Markup: NL2BR plugin installed and working with comments (absolutely essential that this remain.)
3. I believe that the problem is in the first line of code that follows
Code: Select all
$entry = array('comment' => wordwrap(nl2br(htmlspecialchars($row['shout'])), $wordwrap, "\n", 1));
serendipity_plugin_api::hook_event('frontend_display', $entry);
echo $entry['comment'];