Assignment submission stripped out HTML file contents

Hermien.P.630
Hermien.P.630 Posts: 16 🌱
edited January 27 in Higher Ed / Postsecondary

Hi,

One of our students created an HTML file to submit as part of an assignment submission. Included in the file were some style elements as well as some input elements. All of these elements were stripped out of the file, and only the text remained - both when viewed directly from the Brightspace marking interface and when downloading the file.

Is this the expected behaviour? (I can see how it might be intentional, to protect the system from potentially malicious code.)

Any information you can provide would be helpful so we can guide our students on how to submit HTML files successfully.

Best wishes,
Hermien

Tagged:

Answers

  • John.G.278
    John.G.278 Posts: 27 🤝🏼 image

    Hi Hermien,

    Thank you for reaching out with your question.

    Based on the information you provided, I would suggest advising students to submit their HTML files within a ZIP file. This approach should preserve all original content, including any embedded <style> or <input> elements

    If the same issue still occurs, then I would suggest reaching out to our Helpdesk to open a support case for further investigation.

    I hope this helps!

    Regards,
    John

  • Richard.D.792
    Richard.D.792 Posts: 2 🌱

    I just had a similar issue. I created HTML feedback files for my students. All of the CSS was stripped out.

  • Sreelakshmi.N.546
    Sreelakshmi.N.546 Posts: 136 🤝🏼 image

    Hi Richard,

    Thank you for reaching out to us through community

    The removal of the styling inside the HTML of feedbcak files is done on purpose for security concerns. Tags such as <script> are also removed. This happens because it is necessary to enforce an elevated level of security as these HTML files are not being uploaded inline (inside an iframe, for example), so some tags have to be erased.

    As mentioned in the previous post, teh possible work around for this issue is by inserting your HTML feedback file into a zipped folder and, then, uploading the zipped folder instead. When extracting the HTML file from the zipped folder, the code inside the <head> tags will be preserved as in the original.

    I hope this helps!

    Regards,
    Sreelakshmi