var sanitizeHtml = require('sanitize-html');

module.exports =  {
	sanitize: function (dirty, restricted) {
		if (dirty) {
			var clean = sanitizeHtml(dirty, restricted ? {allowedTags: [], allowedAttributes: []} : {allowedTags: ['a'], allowedAttributes: {'a': [ 'href', 'target' ]}});
			return clean;
		}
	}
}
@@ -225,16 +225,22 @@
 gs: %5B'a'
+, 'li'
 %5D, allow

Allow li tags in trail description