schedulemaker/bannerjs

getCourseDescription does not handle multiple <p> tags

Opened this issue · 2 comments

Recreate:
Use a CRN for a course which has multiple paragraphs of description, thus multiple <p> tags. One such example is 44422. Invoke getCourseDescription with the CRN and a valid term code.

Result:
Only the first opening <p> tag and the last closing </p> tag are removed.

Upon further inspection, this is actually due to calling JSON.parse() on the returned HTML string. One possible solution is a body transformation before the call to JSON.parse().