ISN-Zurich / ISN-Learning-Cards

ISN Mobile Application to run Learning Cards for Courses on an Ilias LMS
6 stars 6 forks source link

Remove script tags from html strings #239

Open evangelia-mitsopoulou opened 11 years ago

evangelia-mitsopoulou commented 11 years ago

Current behavior:

Now that we allow the app to load code from anywhere, the server can send HTML code that loads external script files.

Desired behavior:

On the client we need to remove the following script pattern from any string that might be handled as HTML, prior to the use of jquery's html() function: