Example #1
0
 open: function(string) {
   var url = string.replace(/^\_*/, '');
   if(timesliderRegexp.exec(document.location.href) !== null &&
       relativeLink.exec(url) !== null){
     url = "../" + url;
   }
   return '<a href="' + Security.escapeHTMLAttribute(url) + '" >';
 },
Example #2
0
 urls.forEach(function (urlData)
 {
   var startIndex = urlData[0];
   var url = urlData[1];
   var urlLength = url.length;
   processNextChars(startIndex - idx);
   assem.append('<a href="' + Security.escapeHTMLAttribute(url) + '">');
   processNextChars(urlLength);
   assem.append('</a>');
 });
Example #3
0
 close: function(string) {
   var url = string.replace(imgRegex, "$2").replace(/\ .*$/, '');
   return '<span><span class="mdImgContainer"><span></span><img src="' + Security.escapeHTMLAttribute(url) + '" /></span></span>';
 },
Example #4
0
exports.buildCharacterNameToClass = function(value) {
  var characterName = (value === EMPTY_CHARACTER_NAME ? "" : value);

  // "characterName:<character name>"
  return 'characterName:<' + Security.escapeHTMLAttribute(characterName) + '>';
}