Patent ID: 7308648

Claim:
A computer-implemented method for filtering harmful markup language from an electronic document in a computer system, comprising: receiving the electronic document, wherein the electronic document comprises data including a plurality of markup language content; parsing the data received from the electronic document for the plurality of markup language content; comparing the plurality of markup language content with a list of known markup language content in a library, wherein the library comprises a set of security rules for identifying safe and harmful markup language content, wherein the harmful markup language content comprises malicious markup language as determined by the set of security rules, wherein the set of security rules comprises flags which describe various levels of security and wherein the flags are passed to an application program interface; determining a presence of safe markup language content and harmful markup language content in the electronic document based on the content library wherein determining the presence of harmful markup content comprises: determining whether any of the plurality of markup language content is in the library; and if any of the plurality of markup language content is not listed in the library, then determining that the any of the plurality of markup language content not listed in the library comprises the presence of harmful markup language content; and removing the harmful markup language content from the electronic document.