Skip to content

Commit

Permalink
README: Fix broken code examples
Browse files Browse the repository at this point in the history
Closes #1.
  • Loading branch information
sindresorhus authored and mathiasbynens committed May 4, 2014
1 parent 45bf592 commit 6d2d05c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -74,15 +74,15 @@ quotedPrintable.encode('Iñtërnâtiônàlizætiøn☃💩');
// → 'I=C3=B1t=C3=ABrn=C3=A2ti=C3=B4n=C3=A0liz=C3=A6ti=C3=B8n=E2=98=83=F0=9F=92=\r\n=A9'
```

### `quoted-printable.decode(text, options)`
### `quotedPrintable.decode(text, options)`

This function takes a string of text (the `text` parameter) and `Quoted-Printable`-decodes it, using UTF-8 to decode any non-ASCII octets.

```js
quoted-printable.decode('foo=3Dbar');
quotedPrintable.decode('foo=3Dbar');
// → 'foo=bar'

quoted-printable.decode('I=C3=B1t=C3=ABrn=C3=A2ti=C3=B4n=C3=A0liz=C3=A6ti=C3=B8n=E2=98=83=F0=9F=92=\r\n=A9');
quotedPrintable.decode('I=C3=B1t=C3=ABrn=C3=A2ti=C3=B4n=C3=A0liz=C3=A6ti=C3=B8n=E2=98=83=F0=9F=92=\r\n=A9');
// → 'Iñtërnâtiônàlizætiøn☃💩'
```

Expand Down

0 comments on commit 6d2d05c

Please sign in to comment.