---
title: "Mark Snape (@Snapey) | Hashnode"
description: "Mark Snape (@Snapey) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@Snapey"
---

@Snapey

# Mark Snape

@Snapey · Joined June 2022

## Comments

[I try to use CSS, but failing that, my preferred pattern is {!! nl2br(e($description)) !!} the e() function escapes the content, then you convert the newlines and finally, safely echo the raw content](https://hashnode.com/posts/how-to-keep-line-breaks-in-user-input-without-unescaping-it-in-laravel/6291f5b70989e6b52feaf0f1/comment/629a929d70302328c80b63bb)

Comment · Article · Jun 3, 2022 · [How to keep line breaks in user input without unescaping it in Laravel](https://hashnode.com/posts/how-to-keep-line-breaks-in-user-input-without-unescaping-it-in-laravel/6291f5b70989e6b52feaf0f1)
