Available in TypeScript 2.1 there is now the possibility to set partial properties values of objects, making it very easy to initialize new objects. I had the problem before that whenever I wanted to create a new object and also initilize a new object, I had to set my values in the constructor, all my […]
Category Archives: JavaScript
Problem not preserving \n (linebreaks) with article-parser and sanitizeHtml
I was using article-parser 4.2.1 for my node.js program to get article data from a news website. Works perfectly until I realised I couldn’t get the line breaks from the article . With line breaks I mean the “\n” characters. I solved this by going through the plugin and change some properties concerning the htmlmin […]