It is used to inserts HTML line breaks ( <br /> or <br /> ) in front of each newline (\n) in a string.

BY Best Interview Question ON 25 Jan 2019