View/Edit #52:literal_text

Switch to edit mode.

Name(s): literal_text
1: if (typeof(args[1]) == $LIST)
2:   rv = {}
3:   for line in (args[1])
4:     rv = {@rv, this:literal_text(line)}
5:   endfor
6:   return rv
7: endif
8: return strsub(strsub(strsub(tostr(args[1]), "&", "&amp;"), "<", "&lt;"), ">", "&gt;")
9: "Last modified by Dax (#789) on Tue May  2 20:50:15 2017 UTC."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Hacker (#60)

You are not logged in.

[home | help | who | search | setup | code]