Replace \n with <br />

This commit is contained in:
laf
2015-12-04 09:50:51 +00:00
parent b47444a257
commit 9fce58d872

View File

@ -103,7 +103,7 @@ $notifications = new ObjCache('notifications');
<div class="row">
<div class="col-md-12">
<blockquote>
<p><?php echo $notif['body']; ?></p>
<p><?php echo preg_replace('/\\\n/','<br />', $notif['body']); ?></p>
<footer>Source: <code><?php echo $notif['source']; ?></code></footer>
</blockquote>
</div>
@ -133,7 +133,7 @@ $notifications = new ObjCache('notifications');
<div class="row">
<div class="col-md-12">
<blockquote>
<p><?php echo $notif['body']; ?></p>
<p><?php echo preg_replace('/\\\n/','<br />', $notif['body']); ?></p>
<footer>Source: <code><?php echo $notif['source']; ?></code></footer>
</blockquote>
</div>