A
Andre
I'm writing a web-app which needs some javascript (my own) to be
executed locally.
This app can load local pages or remote ones; however I have a concern
about potentially malicious code in remote files. (it would be easy to
write javascript code that would make my web-app do nasty things :-(
For remote pages, I can strip embedded <script>...</script> as well as
<script src="..."/> before displaying it in the web app. However, I am
wondering if it's possible to "hide" other scripts either in css files
or image files that are loaded.
[What I do is "fetch" an html document and process it with my app, and
then feed it to my favorite browser (Firefox) which then loads the
relevant image files and css files (and, presently, other js files if
present) on its own.]
Any help or pointers would be appreciated.
André
executed locally.
This app can load local pages or remote ones; however I have a concern
about potentially malicious code in remote files. (it would be easy to
write javascript code that would make my web-app do nasty things :-(
For remote pages, I can strip embedded <script>...</script> as well as
<script src="..."/> before displaying it in the web app. However, I am
wondering if it's possible to "hide" other scripts either in css files
or image files that are loaded.
[What I do is "fetch" an html document and process it with my app, and
then feed it to my favorite browser (Firefox) which then loads the
relevant image files and css files (and, presently, other js files if
present) on its own.]
Any help or pointers would be appreciated.
André