Permalink
Browse files

Replace HTML entities before exporting. Closes #347.

  • Loading branch information...
1 parent 4ee9438 commit 0c9cd61be7e6c05ed8cb85860a7a1fa661942cf3 highslide-software committed Aug 15, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/modules/exporting.src.js
@@ -303,6 +303,10 @@ extend(Chart.prototype, {
return s2 +'.'+ s3[0];
})*/
+ // Replace HTML entities, issue #347
+ .replace(/ /g, '\u00A0') // no-break space
+ .replace(/­/g, '\u00AD') // soft hyphen
+
// IE specific
.replace(/id=([^" >]+)/g, 'id="$1"')
.replace(/class=([^" ]+)/g, 'class="$1"')

0 comments on commit 0c9cd61

Please sign in to comment.