mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
[Katex] La L'affichage du tableau AVEC réponses pose problème lorsqu'il y a des équations
Fixes #226
This commit is contained in:
parent
8edc77d217
commit
705b0f1ddb
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import { Socket } from 'socket.io-client';
|
|||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faCheck, faCircleXmark } from '@fortawesome/free-solid-svg-icons';
|
||||
import { QuestionType } from '../../Types/QuestionType';
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
import './liveResult.css';
|
||||
import {
|
||||
|
|
@ -370,7 +371,7 @@ const LiveResults: React.FC<LiveResultsProps> = ({ questions, showSelectedQuesti
|
|||
}
|
||||
>
|
||||
{showCorrectAnswers ? (
|
||||
<div dangerouslySetInnerHTML={{ __html: formatLatex(answerText) }}></div>
|
||||
<div dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(formatLatex(answerText)) }}></div>
|
||||
) : isCorrect ? (
|
||||
<FontAwesomeIcon icon={faCheck} />
|
||||
) : (
|
||||
|
|
|
|||
Loading…
Reference in a new issue