AnsweredAssumed Answered

Add javascript to quiz description

Question asked by Vikas Pagar on Mar 18, 2016
Latest reply on Mar 18, 2016 by Vikas Pagar

Hello,

I am trying to add simple javascript to quiz description to control description behavior under different situations. I am aware that custom javascript can be added by admin in entire course to accomplish this task but we do not want to take this approach due to some security reasons.

So when I tried adding JS in description(using html editor), It seems canvas striped script tags of javascript which made browser to think as plain text/html. This is what I added in description, instead of alerting, "It works" text is shown. am I missing something on this? is there any workaround?

<script type="text/javascript">alert("It works");</script>

Outcomes