신동해

Update result_lib.ejs, result_pro.ejs : enable link button, add text_processing

......@@ -15,13 +15,13 @@
<h4 class="ml-2 my-3 text-center">보수 측 검색 결과</h4>
<div class="container">
<ul class="list-group">
<% for (var i = 1; i < posts.display; i++){ %>
<li class="list-group-item">
<p style="font-weight:bold; font-size:120%">제목 : <%= posts.items[i].title.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >내용 : <%= posts.items[i].description.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >날짜 : <%= posts.items[i].pubDate %></p>
<button class="btn btn-secondary">뉴스 보기</button>
</li>
<% for (var i = 0; i < num; i++){ %>
<li class="list-group-item">
<p style="font-weight:bold; font-size:120%">제목 : <%= posts[i].title.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >내용 : <%= posts[i].description.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >날짜 : <%= posts[i].pubDate %></p>
<button class="btn btn-secondary" onclick="location.href='<%= posts[i].originallink %>'">뉴스 보기</button>
</li>
<% } %>
</ul>
</div>
......
......@@ -15,13 +15,13 @@
<h4 class="ml-2 my-3 text-center">진보 측 검색 결과</h4>
<div class="container">
<ul class="list-group">
<% for (var i = 1; i < posts.display; i++){ %>
<li class="list-group-item">
<p style="font-weight:bold; font-size:120%">제목 : <%= posts.items[i].title.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >내용 : <%= posts.items[i].description.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >날짜 : <%= posts.items[i].pubDate %></p>
<button class="btn btn-secondary">뉴스 보기</button>
</li>
<% for (var i = 0; i < num; i++){ %>
<li class="list-group-item">
<p style="font-weight:bold; font-size:120%">제목 : <%= posts[i].title.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >내용 : <%= posts[i].description.replace(/(<b>|<\/b>|&quot)/gi,'') %></p>
<p >날짜 : <%= posts[i].pubDate %></p>
<button class="btn btn-secondary" onclick="location.href='<%= posts[i].originallink %>'">뉴스 보기</button>
</li>
<% } %>
</ul>
</div>
......