JavaScript Replace All Newlines with HTML Line Breaks
JavaScript Replace All Newlines with HTML Line Breaks: a task in Terminal-Lego-15k (Harbor dataset). You need to fix a JavaScript string replacement issue. The goal is to replace all newline characters ( \n ) in a text string with HTML line break tags ( <br / ).
The task
You need to fix a JavaScript string replacement issue. The goal is to replace **all** newline characters (`\n`) in a text string with HTML line break tags (`<br />`).
Part of PrimeIntellect/Terminal-Lego-15k.