diff --git a/.DS_Store b/.DS_Store index 57bff57..fb10509 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/tarteaucitron.js b/tarteaucitron.js index 6acfabb..9fa93c7 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'), var tarteaucitron = { - "version": 20200521, + "version": 20200730, "cdn": cdn, "user": {}, "lang": {}, @@ -1362,9 +1362,9 @@ var tarteaucitron = { html += ''; @@ -1394,6 +1394,10 @@ var tarteaucitron = { } } }, + "fixSelfXSS": function(html) { + fixed = html.toString().replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); + return fixed; + }, "getLanguage": function () { "use strict";