getCourseDescription does not handle multiple <p> tags
Opened this issue · 2 comments
studioph commented
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.
studioph commented
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()
.