-
-
Save alexlehm/8107770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This module is adapted from the CodeIgniter framework | |
//The license is available at http://codeigniter.com/ | |
var html_entity_decode = require('./entities').decode; | |
var never_allowed_str = { | |
'document.cookie': '[removed]', | |
'document.write': '[removed]', | |
'.parentNode': '[removed]', | |
'.innerHTML': '[removed]', | |
'window.location': '[removed]', | |
'-moz-binding': '[removed]', | |
'<!--': '<!--', | |
'-->': '-->', | |
'(<!\\[CDATA\\[)': '<![CDATA[', | |
'<comment>': '<comment>' | |
}; | |
var never_allowed_regex = { | |
// 'javascript\\s*:': '[removed]', | |
'expression\\s*(\\(|()': '[removed]', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment