docs: function(tokenMap, ignoreRegex) {
          return function(data) {
              if (!data) {
                  return null;
              }
              var result = data;
              if (tokenMap) {
                  for (var token in tokenMap) {
                      if (tokenMap.hasOwnProperty(token)) {
                          var search = ignoreRegex ? token : new RegExp(token);
                          result = result.replace(search, tokenMap[token]);
                      }
                  }
              }
              return result;
          }
      }