Use the wonderful function:
It might help.PHP Code:$goodText = br2nl("badText");
Printable View
*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:Quote:
that is the abuse of the break-line tag.
Code:$goodText = sprintf('<div style="white-space: pre;">%s</div>', $badText);