mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 19:59:37 +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:
parent
45ef7c7ce9
commit
7529b572a0
2 changed files with 0 additions and 15 deletions
|
|
@ -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(
|
||||
/ /g,
|
||||
"",
|
||||
);
|
||||
data.data[i].description = data.data[i].description.trim();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue