I have the following string. I want to replace the line break with /n
Good FRIENDS are hard to find, harder to leave,
Use str_replace
$text = str_replace("", "\n", $text);
If there is actually a line break within the tag as in your sample code, try this:
$text = preg_replace("//", "\n", $text);