dopecodez / Wikipedia

Wikipedia for node and the browser
MIT License
82 stars 19 forks source link

Use encodeUriComponent() instead of encodeURI() for better encoding for search params #31

Closed harisangarans closed 3 years ago

harisangarans commented 3 years ago

I like to change to encodeUriComponent() instead of encodeURI() for better encoding for search params.

dopecodez commented 3 years ago

Sounds like a good option. encodeUriComponent is the safer option for us to use.

A good PR would be welcome for this.

dopecodez commented 3 years ago

Closing this issue as this is handled better with encodeURI()