I\'m pulling content from a DB that has been sanitized using mysql_real_escape_string. Accordingly the new line characters now appear as \"\\n\". The issue is that this content
echo ''.str_replace('\n', "\n", $string).'';
'.str_replace('\n', "\n", $string).'