mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
Escape special characters from SVG text
Ref https://github.com/GNS3/gns3-server/issues/952
This commit is contained in:
3 files changed
+7
-4
No files matched your search
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user