I have a string of HTML that makes up a fragment - in this case it's
the entire body of a webpage. I want to sanitize the input to remove
the content of the script tags on the page. I see back before v0.8
there used to be a qx.bom.String.stripScripts() or something similar,
but that has since been removed. After I have sanitized the string, I
want to insert it as the body of the current page I am on. I was
trying to read qx.bom.Html.clean, which seemed to do what I want, but
it doesn't seem to be working. Can anyone point me to what I am doing
incorrectly? I am invoking
qx.bom.Html.clean(content, document, document.getElementsByName('body')[0]);
where content is the variable containing the HTML string. However,
this does not write anything to the body element. Am I going about
this the wrong way? Is there a new equivalent of stripScripts()?
Thanks!
--Greg
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel