*owned*
that is the abuse of the break-line tag.
anywhere he wants to have a new line insert the wildcard\n
would be displayed in the email asCode:$message = "This is \n some message.\n\t please refrain from doing that.";
Code:This is some message. please refrain from doing that.
It is. However, your proposed solution won't work since s/he evidently is sending HTML mail (also, \n is not a wildcard, it's an escape sequence: a wildcard is a character that matches a range of other characters, such as * in a DOS or bash). Instead, you need to wrap the offending text in a container with white-space: pre; like so:that is the abuse of the break-line tag.Code:$goodText = sprintf('<div style="white-space: pre;">%s</div>', $badText);
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks