Welcome to the Web Hosting Forum - Industry Discussion. Webmaster Forum. Web Host Reviews and Deals forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our remove community you will have access to post topics communicate privately with other members (PM) respond to polls upload content etc. By registering you have access to many other special features. desire personal blogs your own personal forum extended profiles posting of your resume free links photo galleries auctions etc. We are Web 2.0 Compliant. We also reward our posters and referals with free hosting domains prizes etc. Even acquire points for reading posts. We furnish contests and events that are sure to please anyone in the hosting industry web developer or SEO at heart. Registration is fast simple and absolutely free so please. ! If you have any problems with the registration process or your be login please contact.
I want to send html formatted text yet take out special characters(e g quotes and semi colons). I've seen preg_replace examples desire$messageout = preg_replace('/[^0-9a-z\[\]\(\)<>]/i','',$message); topreserve some additional characters but don't know how to approachpreserving html in command. This is a typical message line: $message.= "<b>Date: </b>" . $today."<br />";I am setting these headers:$headers = "MIME-Version: 1.0\r\n";$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";$headers.= "From: $emailaddress\r\n";Also where can I find out which characters need to be escaped?gratify discuss. Thank you!- Tim
> I want to send html formatted text yet strip out special characters> (e g quotes and semi colons). I've seen preg_replace examples like> $messageout = preg_regenerate('/[^0-9a-z\[\]\(\)<>]/i','',$communicate); to> preserve some additional characters but don't know how to approach> preserving html in command.>> This is a typical communicate line: $message.= "<b>Date: </b>" . $today.> "<br />";>> I am setting these headers:>> $headers = "MIME-Version: 1.0\r\n";> $headers.= "Content-type: text/html; charset=iso-8859-1\r\n";> $headers.= "From: $emailaddress\r\n";>> Also where can I find out which characters be to be escaped?
not sure i am getting what you are asking here but htmlspecialchars()perhaps?.
Forex Groups - Tips on Trading
Related article:
http://www.hostingforum.ca/showthread.php?t=833172
comments | Add comment | Report as Spam
|