var news_date_div = '001_20180207_NWFF_Paper Cutting_1.jpg'; var news_title_div = '001_20180207_NWFF_Paper%20Cutting_1_5a7aafe344193'; $(document).ready(function() { document.getElementById("news_date").innerHTML=decodeURIComponent(news_date_div); document.getElementById("news_title").innerHTML=decodeURIComponent(news_title_div); //alert(''); //alert(news_date_div); })