I have a variable with linebreaks, and am trying to insert it inside a textarea tag.
<textarea>{{ var_name }}</textarea>
I want the line breaks to be preserved so that it looks the same as when the variable is displayed
<div>{{ var_name|linebreaks }}</div>
Does anyone know how to do this?
Was able to solve this by replacing the \n to html code: