Commit c0ce9a32 authored by Mario Chirinos's avatar Mario Chirinos

websearch

parent de99f4d9
......@@ -277,8 +277,8 @@ def newsDetails(request, newsId):
news = News.objects.get(id=newsId)
for i in request.GET['text'].split():
# news.text = news.text.replace(i, "<b>"+i+"</b>")
news.text = news.text.replace(new RegExp(i, "gi"), (match) => '<b>${i}</b>');
news.text = news.text.replace(i, "<b>"+i+"</b>")
news.text = news.text.replace(new RegExp(i, "gi"), (match) => '<b>${match}</b>');
return render(request,'new/newsDetails.html',{"form":form,"news":news})
#-------------------------------------------------------------------------------
def wsAudioList(request, publisher, start, end):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment