#(Behr) elementtag.html_escaped

47 messages · Page 1 of 1 (latest)

obsidian crag
#

<element[https://meta.denizenscript.com/Docs/Events/entity shoots bow].html_escaped> was my example usage here, dTagParser throws an error but my server doesn't - the issue i have with it though is that the output isn't an html safe usage: https://paste.denizenscript.com/View/110150

gusty dawnBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

obsidian crag
#

(Behr) elementtag.html_escaped

#

what i expected was <element[https://meta.denizenscript.com/Docs/Events/entity shoots bow].html_escaped> to parse to
https://meta.denizenscript.com/Docs/Events/entity%20shoots%20bow
but instead, it returns:
https://meta.denizenscript.com/Docs/Events/entity shoots bow

cerulean shadow
#

!t html_escaped

old fieldBOT
cerulean shadow
#

@edgy moon <element[hello/there test].html_escaped>

edgy moonBOT
# cerulean shadow <@349935669956706304> <element[hello/there test].html_escaped>

Tag parse results for <element[hello/there test].html_escaped>: https://paste.denizenscript.com/View/110153

element[hello/there test].html_escaped
Had error: Tag <element[hello/there test].html_escaped> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) 'html_escaped' for tag <element[hello/there test].html_escaped>!
Had error: The returned value from initial tag fragment 'element[hello/there test]' was: 'hello/there test'.
obsidian crag
#

dTagParser errors with it entirely, im not sure it's updated enough to when it was added

cerulean shadow
#

oh it just

#

return new ElementTag(object.element.replace("&", "&").replace("<", "<").replace(">", ">").replace(""", """).replace("'", "'"));

#

yeah doesn't care about spaces

#

if you think it should, bug thread it

#

or umm

#

just PR it if ya want i guess idk lol

#

not hard obviously

obsidian crag
#

spaces should be replaced with %20 for html use i believe, but i think i might need someone more html-experienced to weigh in on that concept

merry condor
#

Alternatively &nbsp

obsidian crag
bold pasture
#

you're mixing up HTML escaping and URL escaping

obsidian crag
#

oh

#

!t escap

old fieldBOT
# obsidian crag !t escap
Cannot Specify Searched Tag

Multiple possible tags: <ElementTag.escaped>, <ElementTag.unescaped>, <ElementTag.sql_escaped>, <ElementTag.html_escaped>.

bold pasture
#

!t elementtag.url_encode

old fieldBOT
obsidian crag
#

oooh we dont have that

#

oh

#

yeswedo

bold pasture
#

not actually confident off hand what that does precisely

edgy moonBOT
#

Tag parse results for <element[https://meta.denizenscript.com/Docs/Events/entity shoots bow].url_encode>: https://paste.denizenscript.com/View/110156

https%3A%2F%2Fmeta.denizenscript.com%2FDocs%2FEvents%2Fentity+shoots+bow
obsidian crag
#

uh

bold pasture
#

yeah okay that's encode a url param

#

so you would do https://meta.denizenscript.com/Docs/Events/<[SOMETHING].url_encode> if you wanted to encode it properly-ish

obsidian crag
#

AH, yes

#

perfect, that's exactly what i needed

#

tyvm