Jqueryデータベースからクエリされたコンテンツに含まれるpタグの除去
778 ワード
$("#topic_content").html($("#topic_content").text());
このデータがループで遍歴されたデータであれば、次のコードが必要です.
このデータがループで遍歴されたデータであれば、次のコードが必要です.
1 $(".search_result_content").each(function(index,obj){
2 var e_obj=$(obj)
3 e_obj.html(e_obj.text());
4
5 });