Re: html email showing <br> instead of line breaks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> \r\n should be between double quotes: "\r\n"

I think you'll still see the literal "<br>"s in your final email,
though because htmlspecialchars() is converting the angle-brackets in
the tag to their respective HTML entities ("&lt;" for "<" and "&gt;"
for ">").

A bit of a thorny problem because you probably do want to escape
HTML-characters in the message for security purposes. I suppose you
could call str_replace() after htmlspecialchars(), instead of before
it as you currently do.

OTOH, why not just send your email as plain text, instead of HTML?

Thanks,

Ben

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux