문제
: Youtube API로 동영상을 가져오는데 title의 '
가 '
로 표출되는 오류 발생.
해결
: he.js
패키지를 다운받아서 해결.
npm i he
로 패키지 다운.<script src="<c:url value="/[경로]/js/he.js" />"></script>
추가.title
을 he.decode()
로 감싸줌.Handlebars.registerHelper('decode', function(title) {
return he.decode(title);
});