diff options
| author | stonedDiscord <Tukz@gmx.de> | 2024-12-12 23:07:35 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2024-12-12 23:07:58 +0100 |
| commit | 3bc921a08fc7b3306563e8a86a7efd4db1036995 (patch) | |
| tree | 03424c4432bb56e1f49fb4ae839109f1a6da1ab9 /webAO/client/createArea.ts | |
| parent | bd588174157e39342b05a882466233ddcd26aebc (diff) | |
get rid of sageTags in a few places
plan is to migrate to createTextNode
Diffstat (limited to 'webAO/client/createArea.ts')
| -rw-r--r-- | webAO/client/createArea.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webAO/client/createArea.ts b/webAO/client/createArea.ts index 68406d9..9a40bef 100644 --- a/webAO/client/createArea.ts +++ b/webAO/client/createArea.ts @@ -1,7 +1,9 @@ import { client } from "../client"; import { area_click } from "../dom/areaClick"; +import { safeTags } from "../encoding"; -export const createArea = (id: number, name: string) => { +export const createArea = (id: number, aname: string) => { + const name = safeTags(aname); const thisarea = { name, players: 0, |
