Escape special characters from SVG text

Ref https://github.com/GNS3/gns3-server/issues/952
This commit is contained in:
Julien Duponchelle committed 2017-03-20 19:14:07 +01:00
1 parent 5409d9c3f8
commit 55563b9808
3 files changed
+7 -4

No files matched your search

+2 -1
View File
@@ -17,6 +17,7 @@
import aiohttp
import asyncio
import html
import copy
import uuid
import os
@@ -229,7 +230,7 @@ class Node:
self._label = {
"y": round(self._height / 2 + 10) * -1,
"text": self._name,
"text": html.escape(self._name),
"style": style,
"x": None, # None: mean the client should center it
"rotation": 0