CLASSROOMIO-T-227: Exercise Statistics

CLASSROOMIO-T-227: 🔥 🔥 🔥 🔥  Improvements

CLASSROOMIO-T-227:Worked on the Exercise Statistics

CLASSROOMIO-T-227:Worked on the Exercise Statistics

CLASSROOMIO-T-227:Worked on the Exercise Statistics

Co-authored-by: Rotimi Best <[email protected]>


Co-authored-by: Ifeanyi Nwosu <[email protected]>
Co-authored-by: Rotimi Best <[email protected]>


Merge-request: CLASSROOMIO-MR-111
Merged-by: Best Admin <[email protected]>
This commit is contained in:
emmanuel
2023-10-21 07:44:57 +00:00
committed by Space Cloud
co-authored by Rotimi Best Rotimi Best
parent b21d5923e6
commit 5c8571e571
15 changed files with 611 additions and 123 deletions
+13
View File
@@ -26,3 +26,16 @@ export const getTextFromHTML = (html: string): string => {
return dummyDiv.textContent?.trim() || '';
};
const tagsToReplace = {
'&': '&amp;',
'<': '&lt;',
'>': '&gt;'
};
export function replaceHTMLTag(text: string) {
return text
.split('')
.map((char) => tagsToReplace[char] || char)
.join('');
}