From 9e161cd11c5dfa0810caccf85551f3c963c61ea1 Mon Sep 17 00:00:00 2001 From: Spinelli <1249703377@mil> Date: Thu, 12 Jan 2017 11:39:18 -0500 Subject: [PATCH] fix for crew echelon and svg --- web/js/src/armyc2/c2sd/renderer/utilities/SVGTextInfo.js | 5 ++++- web/js/src/armyc2/c2sd/renderer/utilities/SymbolUtilities.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/js/src/armyc2/c2sd/renderer/utilities/SVGTextInfo.js b/web/js/src/armyc2/c2sd/renderer/utilities/SVGTextInfo.js index 25a2c992..6cf18f9d 100644 --- a/web/js/src/armyc2/c2sd/renderer/utilities/SVGTextInfo.js +++ b/web/js/src/armyc2/c2sd/renderer/utilities/SVGTextInfo.js @@ -135,13 +135,16 @@ armyc2.c2sd.renderer.utilities.SVGTextInfo = function (text, anchorPoint, fontIn //catch special characters that break SVGs as base64 dataURIs if(format === 1) { + //got codes from: http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php + //and https://unicodelookup.com (use HTML code) text = text.replace(/\&/g,"&"); text = text.replace(/\