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 all HTML Tags from the answer view in all views #236

Closed ISN-Zurich closed 11 years ago

ISN-Zurich commented 11 years ago

Current behavior:

if a user adds HTML tags where they should not, these tags will be displayed in the UI.

Desired behavior:

On the actual text should be displayed.

The trick works as following:

  1. insert the possible HTML text into a hidden field in the UI using the html() function.
  2. read the content of this hidden field by using the text() function.
  3. insert the text into the correct DOM element