This is PURE HTML. (no php or anything like that, if you want to know the background its a C# application with HTML in a web view).
All my HTML files are nicely form
This works for me in angular:
ts: log: string[] = [];
log: string[] = [];
html: {{ log.join(" ") }}
{{ log.join(" ") }}
result: in textarea each item of log is shown in a new line.