Permalink
Commits on Feb 11, 2015
Commits on Jan 16, 2015
  1. 2.2.0

    TooTallNate committed Jan 16, 2015
  2. encode: allow for a custom `special` object

    TooTallNate committed Jan 16, 2015
    By default the `encode()` function will encode all non-safe
    HTML characters.
    
    But in some contexts, you don't want to encode *all* of these.
    i.e. consider encoding a TextNode, the `"` and `'` chars are safe
    in that context, but `<` `>` and `&` should still be encoded.
    
    This allows for setting an explicit object to use.
Commits on Jan 14, 2015
  1. 2.1.1

    TooTallNate committed Jan 14, 2015
  2. decode: use correct & symbol and return match without semicolon when …

    TooTallNate committed Jan 14, 2015
    …appropriate
    
    Fixes failing tests.
  3. test: more named entity and ambiguous ampersands tests

    Matt Dunlap committed with TooTallNate Jan 14, 2015
    Closes #11.
  4. 2.1.0

    substack committed Jan 14, 2015
  5. document /encode, /decode

    substack committed Jan 14, 2015
  6. encode: remove dead code

    TooTallNate committed with substack Jan 11, 2015
    Does the exact same thing as the `else` branch below.
  7. encode: use test() instead of match()

    TooTallNate committed with substack Jan 11, 2015
    Avoids creating the RegExpArray instance when there's a match.
  8. decode: fix case where named entity is not defined

    TooTallNate committed with substack Jan 11, 2015
    Before `null` was being returned.
  9. decode: tweak spacing

    TooTallNate committed with substack Jan 11, 2015
  10. decode: avoid multiple decoding passes

    TooTallNate committed with substack Jan 11, 2015
    Fixes #13.
  11. separate out into `encoder.js` and `decoder.js` files

    TooTallNate committed with substack Jan 9, 2015
    For requiring individually with browserify to get smaller builds.
Commits on Apr 10, 2014
  1. 2.0.0

    substack committed Apr 10, 2014
  2. update docs

    substack committed Apr 10, 2014
  3. default to numeric for encoding

    substack committed Apr 10, 2014
  4. 1.0.0

    substack committed Apr 10, 2014
  5. document opts.numeric

    substack committed Apr 10, 2014
  6. opts.numeric

    substack committed Apr 10, 2014
  7. opts

    substack committed Apr 10, 2014
Commits on Dec 26, 2013
  1. update the browser list

    substack committed Dec 26, 2013
  2. upgrade tape

    substack committed Dec 26, 2013
Commits on Jul 29, 2013
  1. 0.1.0

    substack committed Jul 29, 2013
  2. 0.0.7

    substack committed Jul 29, 2013