Skip to content

Instantly share code, notes, and snippets.

@darkone23
Created November 2, 2013 02:42
Show Gist options
  • Save darkone23/7274874 to your computer and use it in GitHub Desktop.
Save darkone23/7274874 to your computer and use it in GitHub Desktop.
function template(href, text) {
return ['<a href="', href, '" target="_blank">', text, "</a>"].join('');
}
Running "nodeunit:files" (nodeunit) task
Testing linkify_test.js.............................F...........
>> test.com/"/onmouseover="alert(document.cookie)
>> Error: false == true
>> at Object.tests.(anonymous function) (tests/linkify_test.js:85:10)
Warning: 1/41 assertions failed (30ms) Used --force, continuing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment