Textarea add line breaks

Can anyone tell me how I would be able to render text from my database as munlti line

$terms = str_replace([“rn”, “r”, “n”], “
“, $records->terms); just adds
between each line break but doesn’t run the html

Thanks

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed