Quotify
Have a text file filled with straight quotes that should be curly? Run your text through Quotify to automatically prettify those quotes with their correct HTML entity equivalents!
node-machine)
Usage (requiresvar Machine = require('node-machine');
var quotify = require('quotify');
Machine.build(quotify).configure({
html: '"What\'s the deal?", said the Big Bopper. "We\'re flying kinda low."'
}).exec({
success: console.log
});
outputs:
“What’s the deal?”, said the Big Bopper. “We’re flying kinda low.”