1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

fix: remove description sanitising logic

Since the purpose of this library is to stay as true to the actual API as possible
This commit is contained in:
James Cook 2023-09-14 19:40:08 +01:00
parent 45ef7c7ce9
commit 7529b572a0
2 changed files with 0 additions and 15 deletions

View file

@ -220,20 +220,6 @@ export class BaseClient {
method: "GET",
},
);
for (let i = 0; i < data.data.length; i++) {
data.data[i].description_raw = data.data[i].description;
// homework.lesson.replace(/\\/g, '')
data.data[i].description = data.data[i].description.replace(
/(<([^>]+)>)/gi,
"",
);
data.data[i].description = data.data[i].description.replace(
/&nbsp;/g,
"",
);
data.data[i].description = data.data[i].description.trim();
}
return data;
}
/**

View file

@ -180,7 +180,6 @@ export interface Homework {
title: string;
meta_title: string;
description: string;
description_raw: string;
issue_date: string;
due_date: string;
completion_time_unit: string;