My learning diary

Rendering newlines in HTML attributes

Doing

<textarea placeholder="line1\nline2">

won’t work, but doing

<textarea placeholder="{{ somethingFromScope }}">

where somethingFromScope is line1\nline2 will work as expected!

Relevant posts