Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Release v1.1.1HEADv1.1.1origin/masterorigin/HEADmaster | Mathias Bynens | 2017-01-23 | 4 | -5/+5 |
| | |||||
* | Improve `he.encode` documentation | mirabilos | 2016-08-31 | 1 | -1/+3 |
| | | | | | | Make it clear that enabling the `strict` option causes `he.encode` to either throw (for input containing invalid code points) or return a string of valid HTML. Closes #49. | ||||
* | bower.json: Add `license` | mirabilos | 2016-08-31 | 1 | -0/+1 |
| | | | | Closes #48. | ||||
* | Release v1.1.0v1.1.0 | Mathias Bynens | 2016-04-05 | 4 | -5/+5 |
| | |||||
* | bin: Return with exit status `0` when calling with `-v` | Dave Eddy | 2016-04-05 | 2 | -7/+5 |
| | | | | Closes #28. | ||||
* | Add `decimal` option to `he.encode` for decimal numeric character references | Andreas Kobler | 2016-04-05 | 7 | -17/+233 |
| | | | | Closes #32. | ||||
* | Release v1.0.0v1.0.0 | Mathias Bynens | 2016-04-05 | 4 | -5/+5 |
| | |||||
* | README: Update support section | Mathias Bynens | 2016-04-05 | 1 | -1/+13 |
| | |||||
* | Update dependencies | Mathias Bynens | 2016-04-05 | 1 | -2/+2 |
| | |||||
* | Parse decimal numeric character references before decoding | Ingvar Stepanyan | 2016-04-05 | 4 | -2/+26 |
| | | | | | Fixes #43. Closes #44. | ||||
* | Update build scripts and data | Mathias Bynens | 2016-04-04 | 20 | -2800/+2843 |
| | | | | The spec changed the order of some listings here and there. | ||||
* | Update dependencies | Mathias Bynens | 2016-01-18 | 2 | -4/+5 |
| | |||||
* | Test in Node.js v4.x.x | Mathias Bynens | 2015-09-13 | 1 | -1/+1 |
| | |||||
* | Use Codecov instead of Coveralls | Mathias Bynens | 2015-08-31 | 4 | -5/+5 |
| | |||||
* | Test in Rhino v1.7.6 | Mathias Bynens | 2015-05-07 | 1 | -2/+2 |
| | |||||
* | Test in Rhino 1.7R5 | Mathias Bynens | 2015-02-24 | 2 | -5/+2 |
| | |||||
* | Test in Node.js v0.12.x | Mathias Bynens | 2015-02-09 | 1 | -0/+1 |
| | |||||
* | Use nvm to test in io.js | Mathias Bynens | 2015-02-03 | 2 | -6/+2 |
| | |||||
* | Update dependencies | Mathias Bynens | 2015-01-26 | 8 | -27/+25 |
| | |||||
* | Test in io.js | Mathias Bynens | 2015-01-14 | 3 | -3/+8 |
| | |||||
* | Test in RingoJS v0.11.0 | Mathias Bynens | 2014-12-23 | 2 | -3/+3 |
| | |||||
* | Update URLs | Mathias Bynens | 2014-12-05 | 1 | -2/+2 |
| | |||||
* | Update spec URLs | Mathias Bynens | 2014-09-15 | 5 | -11/+11 |
| | |||||
* | Minor cleanup | Mathias Bynens | 2014-08-31 | 7 | -12/+12 |
| | |||||
* | Tag the v0.5.0 releasev0.5.0 | Mathias Bynens | 2014-08-24 | 4 | -11/+11 |
| | |||||
* | Implement `allowUnsafeSymbols` encoding option | Mike Pennisi | 2014-08-24 | 7 | -11/+81 |
| | | | | | | | | Although `he.escape` allows for escaping ‘unsafe’ markup characters, there is currently no way to escape the inverse set – non-ASCII characters only. This missing functionality is useful in contexts where markup is allowed, but non-ASCII characters might be otherwise mangled (as in the `iframe` `srcdoc` attribute, for example). Introduce a new option to `he.encode` which disables the escaping of unsafe markup characters. Preserve API compatability by disabling this behavior by default. Closes #16 and #23. | ||||
* | Update URLs | Mathias Bynens | 2014-08-24 | 6 | -18/+11 |
| | |||||
* | Set up Coveralls | Mathias Bynens | 2014-05-25 | 8 | -22/+82 |
| | |||||
* | Clean up dependencies | Mathias Bynens | 2014-05-24 | 3 | -5/+1 |
| | |||||
* | Tag the v0.4.1 release | Mathias Bynens | 2014-05-24 | 4 | -5/+5 |
| | |||||
* | Simplify `regexInvalidRawCodePoint` | Mathias Bynens | 2014-05-24 | 4 | -49/+187 |
| | | | | | | By using a lookahead the regular expression to match lone surrogates gets a bit more compact. This also fixes an encoding issue caused by a typo that was introduced in 74fd7cd1b3fad9f464b778acff8ffeb0d3a47163. | ||||
* | Split scripts into separate files per exported value | Mathias Bynens | 2014-05-24 | 15 | -106/+267 |
| | |||||
* | Clean up scripts | Mathias Bynens | 2014-05-24 | 6 | -8203/+5957 |
| | |||||
* | Fix off-by-one error in printable ASCII range | Mathias Bynens | 2014-05-24 | 7 | -44/+53 |
| | |||||
* | Don’t encode invalid code points whose character references would refer to ↵ | Mathias Bynens | 2014-05-24 | 5 | -14/+66 |
| | | | | | | | | another code point I.e. the code points listed in the first column of the overrides table at <http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#table-charref-overrides>. Closes #19. | ||||
* | Make lone high surrogates trigger parse errors too | Mathias Bynens | 2014-05-24 | 5 | -2/+58 |
| | |||||
* | Add `strict` option to `he.encode` | Mathias Bynens | 2014-05-24 | 9 | -86/+180 |
| | | | | Ref. #19. | ||||
* | Scrape the spec for more data | Mathias Bynens | 2014-05-23 | 3 | -34/+187 |
| | | | | | | Let’s also scrape the spec for the list of code points for symbols that cause parse errors when they occur in raw HTML source. Note: `invalid-character-reference-code-points.json` is identical to `invalid-raw-code-points.json` except U+000D (CR) is not included in the latter, because lone CR are converted to LF before tokenization. http://whatwg.org/html/parsing.html#preprocessing-the-input-stream | ||||
* | Tag the v0.4.0 release | Mathias Bynens | 2014-05-23 | 5 | -11/+10 |
| | |||||
* | Make `he.escape` escape backticks as well | Mathias Bynens | 2014-05-23 | 4 | -12/+32 |
| | | | | In Internet Explorer ≤ 8, the backtick character can be used to break out of unquoted attribute values or HTML comments. See http://html5sec.org/#102, http://html5sec.org/#108, and http://html5sec.org/#133. | ||||
* | Update dependencies | Mathias Bynens | 2014-04-24 | 4 | -20/+31 |
| | |||||
* | README: Explicitly request SVG badges | Mathias Bynens | 2014-03-20 | 1 | -2/+2 |
| | |||||
* | Update dependencies | Mathias Bynens | 2014-03-19 | 1 | -5/+5 |
| | |||||
* | component: Add `main` | Mathias Bynens | 2013-11-11 | 1 | -0/+1 |
| | |||||
* | man: Fix typos | Mathias Bynens | 2013-11-11 | 1 | -3/+3 |
| | |||||
* | package.json: Add `bin` and `man` | Mathias Bynens | 2013-11-11 | 1 | -0/+2 |
| | |||||
* | README: Link to @zcorpan’s Twitter account | Mathias Bynens | 2013-10-15 | 1 | -1/+1 |
| | |||||
* | Update dependencies | Mathias Bynens | 2013-10-15 | 3 | -26/+18 |
| | |||||
* | Clean up Gruntfile | Mathias Bynens | 2013-08-27 | 2 | -6/+3 |
| | |||||
* | Tag the v0.3.6 release | Mathias Bynens | 2013-08-07 | 4 | -5/+5 |
| | |||||
* | bin: Add `he --encode --everything 'abc'` | Mathias Bynens | 2013-08-07 | 2 | -9/+25 |
| | | | | Ref. #12. | ||||
* | Remove unit tests for the binary | Mathias Bynens | 2013-08-07 | 2 | -416/+0 |
| | | | | This allows me to remove support for using the binary from within a non-TTY context. | ||||
* | Remove redundant regular expressions | Mathias Bynens | 2013-08-07 | 2 | -16/+6 |
| | |||||
* | encode: Add `encodeEverything` option | Mathias Bynens | 2013-08-07 | 10 | -30/+286 |
| | | | | Ref. #12. | ||||
* | Update dependencies | Mathias Bynens | 2013-08-04 | 1 | -2/+2 |
| | |||||
* | Tag the v0.3.5 release | Mathias Bynens | 2013-08-04 | 5 | -6/+6 |
| | |||||
* | Add some more tests | Mathias Bynens | 2013-08-04 | 2 | -0/+48 |
| | |||||
* | Fix logic error in `scrape-spec.js` | Mathias Bynens | 2013-08-04 | 4 | -36/+41 |
| | |||||
* | Tag the v0.3.4 release | Mathias Bynens | 2013-08-03 | 4 | -5/+5 |
| | |||||
* | data/decode-map-overrides: Filter keys mapping to themselves | Mathias Bynens | 2013-08-02 | 3 | -48/+49 |
| | | | | | | @fb55 pointed out that `decode-map-overrides.json` can be simplified: any code points that map to their respective symbols can be removed if they are included in `invalid-code-points.json`. Good catch! Closes #13. | ||||
* | Tweak script that scrapes the spec | Mathias Bynens | 2013-08-02 | 1 | -7/+6 |
| | |||||
* | Throw on all kinds of disallowed character references | Mathias Bynens | 2013-08-02 | 4 | -8/+50 |
| | | | | Ref. #13. | ||||
* | Tag the v0.3.3 release | Mathias Bynens | 2013-07-30 | 4 | -5/+5 |
| | |||||
* | Avoid compiling `regexDecode` at runtime | Mathias Bynens | 2013-07-30 | 3 | -69/+68 |
| | |||||
* | Clean up `decode` | Mathias Bynens | 2013-07-30 | 2 | -18/+26 |
| | |||||
* | Avoid excessive decoding | Mathias Bynens | 2013-07-30 | 4 | -36/+94 |
| | | | | Fixes #11. | ||||
* | Travis: Only test in Node v0.10.x | Mathias Bynens | 2013-07-27 | 2 | -3/+6 |
| | |||||
* | Tag the v0.3.2 release | Mathias Bynens | 2013-07-27 | 4 | -5/+5 |
| | |||||
* | Add `he` binary | Mathias Bynens | 2013-07-27 | 7 | -5/+668 |
| | |||||
* | Update dependencies | Mathias Bynens | 2013-07-27 | 5 | -17/+11 |
| | |||||
* | README: Fix typo | Mathias Bynens | 2013-07-12 | 1 | -1/+1 |
| | | | | Thanks to @WebReflection for spotting this! https://twitter.com/webreflection/status/355772363754831872 | ||||
* | Tag the v0.3.1 release | Mathias Bynens | 2013-07-01 | 4 | -5/+5 |
| | |||||
* | Add helpful error messages | Mathias Bynens | 2013-07-01 | 2 | -16/+24 |
| | |||||
* | Tag the v0.3.0 release | Mathias Bynens | 2013-07-01 | 4 | -5/+5 |
| | |||||
* | Improve malformed entity detection | Mathias Bynens | 2013-07-01 | 4 | -2/+56 |
| | |||||
* | Tweak template variable names | Mathias Bynens | 2013-07-01 | 2 | -4/+4 |
| | |||||
* | README: Tweak intro | Mathias Bynens | 2013-07-01 | 1 | -1/+1 |
| | |||||
* | Make sure code points are stored as numbers | Mathias Bynens | 2013-07-01 | 2 | -135/+140 |
| | |||||
* | Add `strict` option to `decode` that throws on parse errors | Mathias Bynens | 2013-07-01 | 3 | -25/+169 |
| | | | | Closes #9 and fixes #10. | ||||
* | Add tests for `decode`’s new `strict` option | Mathias Bynens | 2013-07-01 | 2 | -4/+396 |
| | | | | Ref. #9. | ||||
* | Generate an array of all code points that trigger a parse error | Mathias Bynens | 2013-07-01 | 5 | -58/+231 |
| | | | | Ref. #9. | ||||
* | README: Fix typo | Mathias Bynens | 2013-07-01 | 1 | -1/+1 |
| | |||||
* | Make file names of data files more consistent | Mathias Bynens | 2013-06-30 | 3 | -3/+4 |
| | |||||
* | README: Fix indentation | Mathias Bynens | 2013-06-30 | 1 | -2/+2 |
| | |||||
* | Remove stray `require('regenerate')` | Mathias Bynens | 2013-06-29 | 1 | -1/+0 |
| | |||||
* | Tag the v0.2.1 release | Mathias Bynens | 2013-06-28 | 4 | -5/+5 |
| | |||||
* | Clean up data processing scripts | Mathias Bynens | 2013-06-28 | 17 | -4566/+9944 |
| | |||||
* | Future-proof the script that scrapes the character reference overrides | Mathias Bynens | 2013-06-28 | 1 | -36/+32 |
| | |||||
* | README: Clarify that `unescape` accepts an `options` argument | Mathias Bynens | 2013-06-28 | 1 | -1/+1 |
| | |||||
* | Tag the v0.2.0 release | Mathias Bynens | 2013-06-27 | 4 | -5/+5 |
| | |||||
* | README: Tweak examples | Mathias Bynens | 2013-06-27 | 1 | -2/+8 |
| | |||||
* | decode: Support attribute value parsing mode | Mathias Bynens | 2013-06-27 | 5 | -12/+150 |
| | | | | Closes #5. | ||||
* | decode: Make sure numerical escapes are within the Unicode range | Mathias Bynens | 2013-06-27 | 5 | -16/+37 |
| | | | | Closes #7. | ||||
* | Tag the v0.1.10 release | Mathias Bynens | 2013-06-27 | 4 | -5/+5 |
| | |||||
* | README: Fix examples | Mathias Bynens | 2013-06-27 | 1 | -2/+2 |
| | |||||
* | Encode `<>"'&` properly, even with `useNamedReferences: false` | Mathias Bynens | 2013-06-27 | 4 | -6/+28 |
| | |||||
* | escape: Use `'` instead of `'` for backwards compatibility | Mathias Bynens | 2013-06-27 | 4 | -4/+4 |
| | |||||
* | encode: Add `useNamedReferences` option, disabled by default | Mathias Bynens | 2013-06-27 | 5 | -9/+93 |
| | | | | Closes #6. | ||||
* | Tag the v0.1.9 release | Mathias Bynens | 2013-06-27 | 6 | -7/+11 |
| | |||||
* | Implement the lookup table from the HTML spec | Mathias Bynens | 2013-06-27 | 2 | -2/+24 |
| | | | | Fixes #4. |