mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
HTML is now stripped from book and paper text entry.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@687 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -146,7 +146,7 @@
|
|||||||
else
|
else
|
||||||
src.name = title
|
src.name = title
|
||||||
else if("Contents")
|
else if("Contents")
|
||||||
var/content = input("Write your book's contents (HTML allowed):") as message|null
|
var/content = strip_html(input("Write your book's contents (HTML NOT allowed):"),8192) as message|null
|
||||||
if(!content)
|
if(!content)
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ CLIPBOARDS
|
|||||||
clown = 1
|
clown = 1
|
||||||
|
|
||||||
if (istype(P, /obj/item/weapon/pen))
|
if (istype(P, /obj/item/weapon/pen))
|
||||||
var/t = input(user, "What text do you wish to add?", text("[]", src.name), null) as message
|
var/t = strip_html(input(user, "What text do you wish to add?", text("[]", src.name), null),8192) as message
|
||||||
if ((!in_range(src, usr) && src.loc != user && !( istype(src.loc, /obj/item/weapon/clipboard) ) && src.loc.loc != user && user.equipped() != P))
|
if ((!in_range(src, usr) && src.loc != user && !( istype(src.loc, /obj/item/weapon/clipboard) ) && src.loc.loc != user && user.equipped() != P))
|
||||||
return
|
return
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user