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
@@ -18,6 +18,7 @@
import os
import re
import uuid
import html
import asyncio
import aiohttp
@@ -83,7 +84,7 @@ class Link:
"x": -10,
"y": -10,
"rotation": 0,
"text": "{}/{}".format(adapter_number, port_number),
"text": html.escape("{}/{}".format(adapter_number, port_number)),
"style": "font-size: 10; font-style: Verdana"
}