nazarlitvin / gulp-utm2html

Add UTM tags to URL in HTML file
1 stars 2 forks source link

Remove buffer length limit and removed decodeEntities #6

Open danerich opened 6 years ago

danerich commented 6 years ago

I have removed the data.length to stop the HTML file being clipped.

I altered the cheerio.load to not decodeEntities. So the URL with tracking added is: ?utm_source=in-house&utm_medium=email&utm_campaign=name

and not: ?utm_source=in-house&utm_medium=email&utm_campaign=name

I have also added an ignore for the "tel:" URL's. I don't know if it would be better to only work on a URL id it is http:// or https://