[FIX] website_slides: unwanted html text

How to reproduce:
=================
1. Open any course having quiz.
2. Select quiz content.
-> In the quiz template we can see that the html content is not sanitize.

Technical:
==========
I think the issue arises after this commit https://github.com/odoo/odoo/commit/0d7acf60b4cca84a8c700edd97af8c4de6b78010

After this commit:
==================
Now t-esc is deprecated and the HTML text is not sanitize in the template
so instead of t-esc we are using t-out.

Task-3555159

closes odoo/odoo#138873

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Shaan Thakkar (THSH)
2023-10-25 11:37:30 +00:00
parent 3f8ee12ca0
commit 4e7d383692
@@ -3,7 +3,7 @@
<t t-name="slide.slide.quiz">
<div class="o_wslides_fs_quiz_container o_wslides_wrap h-100 w-100 overflow-auto pb-5">
<div class="container">
<div t-if="widget.quiz.description_safe" t-esc="widget.quiz.description_safe" class="mt-3" />
<div t-if="widget.quiz.description_safe" t-out="widget.quiz.description_safe" class="mt-3" />
<div t-foreach="widget.quiz.questions" t-as="question" t-key="question_index"
t-attf-class="o_wslides_js_lesson_quiz_question mt-5 mb-4 #{widget.slide.completed ? 'completed-disabled' : ''}"
t-att-data-question-id="question.id" t-att-data-title="question.question">