ISN-Zurich / ISN-Learning-Cards

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

Sometimes users add preceding and trailing p and br tags to the questions and feedbacks. They MUST be removed #237

Closed ISN-Zurich closed 11 years ago

ISN-Zurich commented 11 years ago

Current behavior:

Content creators add sometimes p tags and br into the questions and feedbacks in order to create a bit space at the top or the bottom of the question.

THIS IS FORBIDDEN in Mobler Cards.

Desired behavior:

Filter empty P-Tags and br-tags before displaying the question and feedback more view. The following algorithm should be applied:

HINT: Once the text is cleaned it should (re)place the original text in the local storage. the best time to do this cleaning is when the data is loaded from the backend

evangelia-mitsopoulou commented 11 years ago

Extra: Clean all script and img tags from question text and feedback view more text.