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="row">
<div class="col-md-12"> <div class="col-md-12">
<blockquote> <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> <footer>Source: <code><?php echo $notif['source']; ?></code></footer>
</blockquote> </blockquote>
</div> </div>
@@ -133,7 +133,7 @@ $notifications = new ObjCache('notifications');
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<blockquote> <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> <footer>Source: <code><?php echo $notif['source']; ?></code></footer>
</blockquote> </blockquote>
</div> </div>