fb55/entities

I could not get it to decode HTML entities

Closed this issue · 1 comments

installed version 1.1.1

var entities = require("entities");
console.log(entities.decodeHTML('hello+%22i+think%22+%27therefore+I+am%27+%26%0D%0Ayou+are+%7C+also'));

Console output is:
hello+%22i+think%22+%27therefore+I+am%27+%26%0D%0Ayou+are+%7C+also

I realized that data is URI encoded. My form was URI encoded. I needed to change the enctype of my form.