var div = document.createElement("div")
div.innerHTML = text
text = div.innerText || div.textContent
div = null
return text
}
调用一下decode
$data = array('a'=>'<a href="123">321</a>','b'=>'<label>1/1</label>')$json = json_encode($data)
使用json_encode