Title: Quiz Question Bug: HTML Code Syntax Sanitization Issue
Last modified: September 25, 2026

---

# Quiz Question Bug: HTML Code Syntax Sanitization Issue

 *  [shqipcinema](https://wordpress.org/support/users/shqipcinema/)
 * (@shqipcinema)
 * [5 days, 23 hours ago](https://wordpress.org/support/topic/quiz-question-bug-html-code-syntax-sanitization-issue/)
 * I noticed some bugs in Tutor LMS
   Me and my friend are trying to create a website
   with tutor lms plugin for teaching coding and stuff.We are building a coding 
   academy and using the “Fill in the Blanks” and “Sort” ( and I am sure on other
   questions types too ) to test our students on HTML/CSS tags ( to be honest we
   will continue even with c++, python or other things, but we stopped here to see
   if the problem would be fixed ). However, we have encountered a major issue when
   a student and us in the question try to input raw HTML syntax (such as </p>, 
   <p>, or <div>) in there.Please I hope in the next update you fix this bug. Thank
   you!
    -  This topic was modified 5 days, 23 hours ago by [shqipcinema](https://wordpress.org/support/users/shqipcinema/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Nafiz](https://wordpress.org/support/users/urnafiz/)
 * (@urnafiz)
 * [5 days, 15 hours ago](https://wordpress.org/support/topic/quiz-question-bug-html-code-syntax-sanitization-issue/#post-19029816)
 * Hello [@shqipcinema](https://wordpress.org/support/users/shqipcinema/),
 * Thanks for sharing the details and your thoughtful feedback. At the moment, you
   can not add HTML tags directly to question title. However, I will forward your
   case and feedback to our team.
 * Best regards,
   Nafiz | Tutor LMS Support Team
 *  Thread Starter [shqipcinema](https://wordpress.org/support/users/shqipcinema/)
 * (@shqipcinema)
 * [9 hours, 1 minute ago](https://wordpress.org/support/topic/quiz-question-bug-html-code-syntax-sanitization-issue/#post-19034045)
 * Hello! Please mention that I cannot even on the answers, etc…
 *  [Nafiz](https://wordpress.org/support/users/urnafiz/)
 * (@urnafiz)
 * [8 hours, 53 minutes ago](https://wordpress.org/support/topic/quiz-question-bug-html-code-syntax-sanitization-issue/#post-19034060)
 * Hello [@shqipcinema](https://wordpress.org/support/users/shqipcinema/),
 * I am not quite clear on what you mean. Could you please explain the issue in 
   more detail?
 *  Thread Starter [shqipcinema](https://wordpress.org/support/users/shqipcinema/)
 * (@shqipcinema)
 * [8 hours, 48 minutes ago](https://wordpress.org/support/topic/quiz-question-bug-html-code-syntax-sanitization-issue/#post-19034071)
 * Hello! [@urnafiz](https://wordpress.org/support/users/urnafiz/) 
   Thank you for
   helping me out.The problem isn’t just with the **Question Titles**, but with **
   all input fields across different question types**—including **Answer Options**,**
   Blank Fields** (in _Fill in the Blanks_), and **Items** (in _Sorting_ questions).
 * Here is the exact issue:
 * When we type raw code containing tags (like `<div>`, `<p>`, `</p>`, or `<span
   >`) into **Answer Options**, **Fill in the Blanks**, or **Sorting items**, the
   system does not display them properly as text. Instead:
    1. **In the Admin/Quiz Builder:** The tags often get stripped, modified, or rendered
       as actual HTML elements instead of remaining plain text code snippets.
    2. **In Frontend Quizzes (For Students):** When students try to type code snippets
       like `<p>` into a _Fill in the Blanks_ field, or when we set an answer choice
       containing standard tags, the input gets broken, hidden, or interpreted as browser
       markup rather than a text answer.
 * Since we are building a coding academy, we need students to be able to enter 
   raw HTML, CSS, C++, or XML tags (e.g., using syntax like `<tag>`) directly into**
   question titles, answer choices, input blanks, and sorting items** without the
   system stripping them out or breaking the layout.
 * Please share this with your development team as a feature request/bug fix to 
   properly sanitize, escape, and allow raw code characters (`<`, `>`, `/`) across
   all quiz inputs and answer choices.
 * Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquiz-question-bug-html-code-syntax-sanitization-issue%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/tutor/assets/icon-256x256.jpg?rev=3598934)
 * [Tutor LMS - eLearning and online course solution](https://wordpress.org/plugins/tutor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tutor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tutor/)
 * [Active Topics](https://wordpress.org/support/plugin/tutor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tutor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tutor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [shqipcinema](https://wordpress.org/support/users/shqipcinema/)
 * Last activity: [8 hours, 48 minutes ago](https://wordpress.org/support/topic/quiz-question-bug-html-code-syntax-sanitization-issue/#post-19034071)
 * Status: not resolved