code: function sanitizeHtml(html, whitelist) {
          return html.replace(/<[^>]*>?/gi, function(tag) {
              return tag.match(whitelist) ? tag : '';
          });
      }
docs: Sanitize html, removing tags that aren't in the whitelist