summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v1.1.1HEADv1.1.1origin/masterorigin/HEADmasterMathias Bynens2017-01-234-5/+5
|
* Improve `he.encode` documentationmirabilos2016-08-311-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`mirabilos2016-08-311-0/+1
| | | | Closes #48.
* Release v1.1.0v1.1.0Mathias Bynens2016-04-054-5/+5
|
* bin: Return with exit status `0` when calling with `-v`Dave Eddy2016-04-052-7/+5
| | | | Closes #28.
* Add `decimal` option to `he.encode` for decimal numeric character referencesAndreas Kobler2016-04-057-17/+233
| | | | Closes #32.
* Release v1.0.0v1.0.0Mathias Bynens2016-04-054-5/+5
|
* README: Update support sectionMathias Bynens2016-04-051-1/+13
|
* Update dependenciesMathias Bynens2016-04-051-2/+2
|
* Parse decimal numeric character references before decodingIngvar Stepanyan2016-04-054-2/+26
| | | | | Fixes #43. Closes #44.
* Update build scripts and dataMathias Bynens2016-04-0420-2800/+2843
| | | | The spec changed the order of some listings here and there.
* Update dependenciesMathias Bynens2016-01-182-4/+5
|
* Test in Node.js v4.x.xMathias Bynens2015-09-131-1/+1
|
* Use Codecov instead of CoverallsMathias Bynens2015-08-314-5/+5
|
* Test in Rhino v1.7.6Mathias Bynens2015-05-071-2/+2
|
* Test in Rhino 1.7R5Mathias Bynens2015-02-242-5/+2
|
* Test in Node.js v0.12.xMathias Bynens2015-02-091-0/+1
|
* Use nvm to test in io.jsMathias Bynens2015-02-032-6/+2
|
* Update dependenciesMathias Bynens2015-01-268-27/+25
|
* Test in io.jsMathias Bynens2015-01-143-3/+8
|
* Test in RingoJS v0.11.0Mathias Bynens2014-12-232-3/+3
|
* Update URLsMathias Bynens2014-12-051-2/+2
|
* Update spec URLsMathias Bynens2014-09-155-11/+11
|
* Minor cleanupMathias Bynens2014-08-317-12/+12
|
* Tag the v0.5.0 releasev0.5.0Mathias Bynens2014-08-244-11/+11
|
* Implement `allowUnsafeSymbols` encoding optionMike Pennisi2014-08-247-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 URLsMathias Bynens2014-08-246-18/+11
|
* Set up CoverallsMathias Bynens2014-05-258-22/+82
|
* Clean up dependenciesMathias Bynens2014-05-243-5/+1
|
* Tag the v0.4.1 releaseMathias Bynens2014-05-244-5/+5
|
* Simplify `regexInvalidRawCodePoint`Mathias Bynens2014-05-244-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 valueMathias Bynens2014-05-2415-106/+267
|
* Clean up scriptsMathias Bynens2014-05-246-8203/+5957
|
* Fix off-by-one error in printable ASCII rangeMathias Bynens2014-05-247-44/+53
|
* Don’t encode invalid code points whose character references would refer to ↵Mathias Bynens2014-05-245-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 tooMathias Bynens2014-05-245-2/+58
|
* Add `strict` option to `he.encode`Mathias Bynens2014-05-249-86/+180
| | | | Ref. #19.
* Scrape the spec for more dataMathias Bynens2014-05-233-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 releaseMathias Bynens2014-05-235-11/+10
|
* Make `he.escape` escape backticks as wellMathias Bynens2014-05-234-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 dependenciesMathias Bynens2014-04-244-20/+31
|
* README: Explicitly request SVG badgesMathias Bynens2014-03-201-2/+2
|
* Update dependenciesMathias Bynens2014-03-191-5/+5
|
* component: Add `main`Mathias Bynens2013-11-111-0/+1
|
* man: Fix typosMathias Bynens2013-11-111-3/+3
|
* package.json: Add `bin` and `man`Mathias Bynens2013-11-111-0/+2
|
* README: Link to @zcorpan’s Twitter accountMathias Bynens2013-10-151-1/+1
|
* Update dependenciesMathias Bynens2013-10-153-26/+18
|
* Clean up GruntfileMathias Bynens2013-08-272-6/+3
|
* Tag the v0.3.6 releaseMathias Bynens2013-08-074-5/+5
|
* bin: Add `he --encode --everything 'abc'`Mathias Bynens2013-08-072-9/+25
| | | | Ref. #12.
* Remove unit tests for the binaryMathias Bynens2013-08-072-416/+0
| | | | This allows me to remove support for using the binary from within a non-TTY context.
* Remove redundant regular expressionsMathias Bynens2013-08-072-16/+6
|
* encode: Add `encodeEverything` optionMathias Bynens2013-08-0710-30/+286
| | | | Ref. #12.
* Update dependenciesMathias Bynens2013-08-041-2/+2
|
* Tag the v0.3.5 releaseMathias Bynens2013-08-045-6/+6
|
* Add some more testsMathias Bynens2013-08-042-0/+48
|
* Fix logic error in `scrape-spec.js`Mathias Bynens2013-08-044-36/+41
|
* Tag the v0.3.4 releaseMathias Bynens2013-08-034-5/+5
|
* data/decode-map-overrides: Filter keys mapping to themselvesMathias Bynens2013-08-023-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 specMathias Bynens2013-08-021-7/+6
|
* Throw on all kinds of disallowed character referencesMathias Bynens2013-08-024-8/+50
| | | | Ref. #13.
* Tag the v0.3.3 releaseMathias Bynens2013-07-304-5/+5
|
* Avoid compiling `regexDecode` at runtimeMathias Bynens2013-07-303-69/+68
|
* Clean up `decode`Mathias Bynens2013-07-302-18/+26
|
* Avoid excessive decodingMathias Bynens2013-07-304-36/+94
| | | | Fixes #11.
* Travis: Only test in Node v0.10.xMathias Bynens2013-07-272-3/+6
|
* Tag the v0.3.2 releaseMathias Bynens2013-07-274-5/+5
|
* Add `he` binaryMathias Bynens2013-07-277-5/+668
|
* Update dependenciesMathias Bynens2013-07-275-17/+11
|
* README: Fix typoMathias Bynens2013-07-121-1/+1
| | | | Thanks to @WebReflection for spotting this! https://twitter.com/webreflection/status/355772363754831872
* Tag the v0.3.1 releaseMathias Bynens2013-07-014-5/+5
|
* Add helpful error messagesMathias Bynens2013-07-012-16/+24
|
* Tag the v0.3.0 releaseMathias Bynens2013-07-014-5/+5
|
* Improve malformed entity detectionMathias Bynens2013-07-014-2/+56
|
* Tweak template variable namesMathias Bynens2013-07-012-4/+4
|
* README: Tweak introMathias Bynens2013-07-011-1/+1
|
* Make sure code points are stored as numbersMathias Bynens2013-07-012-135/+140
|
* Add `strict` option to `decode` that throws on parse errorsMathias Bynens2013-07-013-25/+169
| | | | Closes #9 and fixes #10.
* Add tests for `decode`’s new `strict` optionMathias Bynens2013-07-012-4/+396
| | | | Ref. #9.
* Generate an array of all code points that trigger a parse errorMathias Bynens2013-07-015-58/+231
| | | | Ref. #9.
* README: Fix typoMathias Bynens2013-07-011-1/+1
|
* Make file names of data files more consistentMathias Bynens2013-06-303-3/+4
|
* README: Fix indentationMathias Bynens2013-06-301-2/+2
|
* Remove stray `require('regenerate')`Mathias Bynens2013-06-291-1/+0
|
* Tag the v0.2.1 releaseMathias Bynens2013-06-284-5/+5
|
* Clean up data processing scriptsMathias Bynens2013-06-2817-4566/+9944
|
* Future-proof the script that scrapes the character reference overridesMathias Bynens2013-06-281-36/+32
|
* README: Clarify that `unescape` accepts an `options` argumentMathias Bynens2013-06-281-1/+1
|
* Tag the v0.2.0 releaseMathias Bynens2013-06-274-5/+5
|
* README: Tweak examplesMathias Bynens2013-06-271-2/+8
|
* decode: Support attribute value parsing modeMathias Bynens2013-06-275-12/+150
| | | | Closes #5.
* decode: Make sure numerical escapes are within the Unicode rangeMathias Bynens2013-06-275-16/+37
| | | | Closes #7.
* Tag the v0.1.10 releaseMathias Bynens2013-06-274-5/+5
|
* README: Fix examplesMathias Bynens2013-06-271-2/+2
|
* Encode `<>"'&` properly, even with `useNamedReferences: false`Mathias Bynens2013-06-274-6/+28
|
* escape: Use `&#x27;` instead of `&apos;` for backwards compatibilityMathias Bynens2013-06-274-4/+4
|
* encode: Add `useNamedReferences` option, disabled by defaultMathias Bynens2013-06-275-9/+93
| | | | Closes #6.
* Tag the v0.1.9 releaseMathias Bynens2013-06-276-7/+11
|
* Implement the lookup table from the HTML specMathias Bynens2013-06-272-2/+24
| | | | Fixes #4.