The code below removes all " symbols in HTML links replacing them with regular quotation marks. [COLOR=#111111]$text = preg_replace('/<([^<>]+)>/e', '"<" .str_replace(""", \'"\', "$1").">"', $text);[/COLOR] Code (markup): Using the same idea how can I remove new lines \n in HTML links? Will it be something like this: [COLOR=#111111]$text = preg_replace('/<([^<>]+)>/e', '"<" .str_replace("\n", \'\', "$1").">"', $text);[/COLOR] Code (markup): Or no?
Read this http://www.webdeveloper.com/forum/showthread.php?75424-remove-newline-characters-from-a-string