/**
 * Builds converter objects
 * @constructor
 * @returns {Object} converter
 * @returns {Function} converter.escape
 * @returns {Function} converter.unescape
 */
var ConverterService = function () {
  /**
   * Strips html from a string
   * @param {String} html
   */
  this.escape = function(html) {
    return String(html)
      .replace(/&/g, '&amp;')
      .replace(/"/g, '&quot;')
      .replace(/'/g, '&#39;')
      .replace(/</g, '&lt;')
      .replace(/>/g, '&gt;');
  };
  /**
   * Adds html back to an escaped string
   * @param {String} html
   */
  this.unescape = function(html) {
    return String(html)
      .replace(/&amp;/g, '&')
      .replace(/&quot;/g, '"')
      .replace(/&#39;/g, '\'')
      .replace(/&lt;/g, '<')
      .replace(/&gt;/g, '>');
  };
};

module.exports = ConverterService;

@@ -76,90 +76,8 @@
 ter%0A
- * @returns %7BFunction%7D converter.escape%0A * @returns %7BFunction%7D converter.unescape%0A
  */%0A
@@ -167,32 +167,62 @@
 am %7BString%7D html
+ the html string to be escaped
 %0A   */%0A  this.es
@@ -496,16 +496,39 @@
 ng%7D html
+ the string to unescape
 %0A   */%0A 

add description of method parameters