Voglio andare a capo nel codice html scritto con un textarea.

Cioè voglio che

mmmmm</p>

kkkkk</p> diventi



mmmmm</p>


kkkkk</p>

Come faccio?
In PHP mi sembrava fosse \n