Web-interface functions

Like most of staticDHCPd, the web interface is well-documented in the scripting guide.

There are some methods that you might want to use in your own code that would be a waste of effort to reimplement, however, and those are described here.

Methods

web.functions.sanitise(string)[source]

Ensures that the string is usable anywhere in an HTML5 body.

Parameters:string (basestring) – The string to sanitise.
Return basestring:
 The sanitised string, or None if nothing was provided.