// Replacing encodeProblemUrlChars with attributeSafeUrl. See more at https://code.google.com/p/pagedown/source/detail?r=016a78c093843e203de5364117d34d406a09e8c0
functionattributeSafeUrl(url){
// hex-encodes some unusual "problem" chars in URLs to avoid URL detection problems