0

How can I safely render user-inputted HTML and remove javascript? How do Gmail, Yahoo Mail and the other big players on the internet safely render email as HTML and scrub out malicious JavaScript?

burnt1ce
  • 14,387
  • 33
  • 102
  • 162
  • 2
    This is usually done server-side. – sabof Mar 07 '14 at 22:10
  • I have found this blog post to be pretty informative: http://www.floyd.ch/?p=761. Basically, there's no way we can guarantee security. And to the moderators that marked this question as a duplicate, YOU'RE MISTAKEN. – burnt1ce Mar 08 '14 at 17:34

1 Answers1

0

USE THE function strip_tags() from php WHEN YOU GET THE value of post or get in the server side you can strip it out.