aboutsummaryrefslogtreecommitdiff
path: root/js/lib/common.js
AgeCommit message (Collapse)Author
2015-01-12Wrap decodeURI in a try.John MacFarlane
This ensures that we return original content (unnormalized) rather than raising an exception for things like [foo](<&#x25;test>) Not sure if this is the best approach.
2015-01-12Use decodeURI instead of the deprecated 'unescape'.John MacFarlane
<https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/unescape>
2015-01-12Fixed some linter errors.John MacFarlane
2015-01-12Moved "use strict" to top of modules.John MacFarlane
2015-01-11Moved common xml escaping code from xml.js, html.js to common.js.John MacFarlane
2015-01-11Factored out normalizeURI into a single function in common.js.John MacFarlane
This way we can change it without changing four separate places in the code.
2015-01-11Factored out unescapeString into new module, js/common.js.John MacFarlane
This is used in both blocks.js and inlines.js.