WebKit.Page has these new methods:
def htmlEncode(self, s):
def htmlDecode(self, s):
def urlEncode(self, s):
def urlDecode(self, s):
So, for example, you can say:
inside a servlet or PSP. These eliminate the need to say something like:
from WebUtils.WebFuncs import HTMLEncode
which was pretty popular both in and out of WebKit. Frankly, I got tired of
typing that line all the time.
WebUtils.WebFuncs has been renamed to Funcs.
The functions inside have been renamed:
URLEncode = urlEncode
URLDecode = urlDecode
HTMLEncode = htmlEncode
HTMLDecode = htmlDecode
HTMLForDictionary = htmlForDict
However, the old function names are still there: they print a deprecated
msg and invoke the new function. Also, WebUtils.WebFuncs imports * from Funcs.
So no one's existing code should break.
The deprecated names will be removed in the next release (typically 4
months down the road).
Get latest updates about Open Source Projects, Conferences and News.