schwarzdavid / bootstrap-email

MIT License
27 stars 11 forks source link

Added cheerio options to constructor #31

Open th0m4s opened 2 years ago

th0m4s commented 2 years ago

This commit allows to give options to the BootstrapEmail constructor that will be given to the cheerio dependency for parsing the HTML file.

Used for example to allow for the decoding of HTML entities (using the decodeEntities: true flag).

It simply accepts another element in the 'options' object, let me know if you prefer a different implementation.