mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user