diff --git a/README.md b/README.md index 33f8bfb..7f6b988 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Secure XSS Filters `document.write("" + xssFilters.uriInHTMLData(url) + "");` - In this example, the traditional wisdom of blindly escaping the five well-known characters (`&` `<` `>` `'` `"`) would not stop XSS (e.g., when `url` is equal to `javascript:alert(1)` or ` onclick=alert(1)`). + In this example, the traditional wisdom of blindly escaping the five well-known characters (`&` `<` `>` `'` `"` `` ` ``) would not stop XSS (e.g., when `url` is equal to `javascript:alert(1)` or ` onclick=alert(1)`). - **Just Sufficient Encoding.** Encode the *minimal* set of characters to thwart JavaScript executions, thus preventing XSS attacks while keeping most characters intact. Say goodbye to double-encoding problems such as '&amp;lt;', as often resulted from traditional filters!! @@ -47,6 +47,8 @@ app.get('/', function(req, res){ Simply download the latest minified version from the [`dist/`](./dist) folder. Embed it in your HTML file, and all filters are available in a global object called `xssFilters`. ```html + +...