когда я добавляю b-тэг в jquery (в html ()), я получаю HTTP / 1.1 500 Internal Server Error

Это код

html <a href="#" data-postid="{{ $post->id }}" data-userid="{{ Auth::user()->id }}" class="like-post"> @if(Auth::user()->likes()->where(['user_id' => Auth::user()->id, 'post_or_comment_id' => $post->id,'isPost' => 1])->first()) <span class="glyphicon glyphicon-star"></span>like @else <span class="glyphicon glyphicon-star-empty"></span>like @endif </a>| jquery $('.like-post').on('click',function(event){ event.preventDefault(); var userId = event.target.dataset['userid']; var postId = event.target.dataset['postid']; $.ajax({ method:'POST', url:likeUrl, data:{userId:userId, p_or_c:postId, isPost:1, _token:token}, success:function(msg){ if(msg['like'] == 0) $(event.target).html('<span class="glyphicon glyphicon-star-empty"></span>like'); else $(event.target).html('<span class="glyphicon glyphicon-star"></span>like'); console.log(msg['like']+'yes'); } }) }); 

все отлично работает, но когда я меняю:

 <span class="glyphicon glyphicon-star"></span>like 

to (в файлах html и jquery):

 <span class="glyphicon glyphicon-star"></span><b>like</b> or <b><span class="glyphicon glyphicon-star"></span>like</b> 

это случается, прежде чем добавлять b tag … все мелкие снимки экрана 1 после добавления b tag screen shot 2

Я получаю эту ошибку HTTP / 1.1 500 Internal Server Error, и я пробовал много вещей, но кажется, что jquery не принимает два тега в html (), потому что я попытался изменить тег b на тег span и появилась такая же ошибка, и спасибо заранее