Properly escape CourseKeys and UsageKeys in html templates

[LMS-11372]
[LMS-11370]
Merge pull request #5392 from cpennington/escape-course-ids-in-html

Properly escape CourseKeys and UsageKeys in html templates