← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233740]: [1.0] Problems importing xml.dom.minidom in script running mode - interactive seems to work

 

Question #233740 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/233740

RaiMan posted a new comment:
for the HTML text output this is a workaround:

instead of
print x

use:
print x.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")

--- make a def or lambda to use it more often

htmlEncode = lambda x: x.replace("&", "&amp;").replace("<",
"&lt;").replace(">", "&gt;")

print htmlEncode(x)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.