Generally thou when data is submitted with an enter in the string it is both the Carriage Return (13) and Line Feed (10) characters so you may want to do
SET @line = replace(replace(@line, char(13),''), char(10), '<br>')
to get it properly replaced in the string.