Skip to content

Commit 57e3caa

Browse files
committed
Update README.md for new decodePercentEncoding option
1 parent f99f494 commit 57e3caa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ providing an Object as the second parameter to [Autolinker.link()](http://gregja
212212
4) Twitter mention links will have the CSS classes: "myLink myLink-mention myLink-twitter"<br />
213213
5) Instagram mention links will have the CSS classes: "myLink myLink-mention myLink-instagram"<br />
214214
5) Hashtag links will have the CSS classes: "myLink myLink-hashtag"<br />
215+
- [decodePercentEncoding](http://gregjacobs.github.io/Autolinker.js/api/#!/api/Autolinker-cfg-decodePercentEncoding): Boolean<br />
216+
`true` to decode percent-encoded characters in URL matches, `false` to keep
217+
the percent-encoded characters.
218+
219+
Example when `true`: `https://en.wikipedia.org/wiki/San_Jos%C3%A9` will
220+
be displayed as `https://en.wikipedia.org/wiki/San_José`.
221+
222+
Defaults to `true`.
215223
- [replaceFn](http://gregjacobs.github.io/Autolinker.js/api/#!/api/Autolinker-cfg-replaceFn) : Function<br />
216224
A function to use to programmatically make replacements of matches in the
217225
input string, one at a time. See the section

0 commit comments

Comments
 (0)