Html.lua

From Alpine Linux
Revision as of 14:56, 22 November 2007 by Ms13sp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

cookie.set

INPUT:
This library required the following inputs/parameters.

  • name
  • value
  • path

OUTPUT:
This library deliverers the following output/parameters.

  • String to set the cookie

CODING EXAMPLE:

-- Set variable/Call for this library

html_escape

INPUT:
This library required the following inputs/parameters.

  • text-string

OUTPUT:
This library deliverers the following output/parameters.

  • String with &,>,< signs encoded

CODING EXAMPLE:

-- Set variable/Call for this library
bobo = require "html"
format = bobo.html_escape("This is > a test < string &")
print(format)

This is > a test < string &

nv_pair

INPUT:
This library required the following inputs/parameters.

  • name
  • value

OUTPUT:
This library deliverers the following output/parameters.

  • name="value"

CODING EXAMPLE:

-- Set variable/Call for this library
bobo = require "html"
format = bobo.nv_pair("foo", "bar")
print(format)
foo="bar"