我正在使用WP-API创建一个JavaScript应用程序,我正在使用http请求从WordPress数据库中提取内容。对于一个普通的帖子,我并没有得到我所期望的所有元素数据。
我将以下文本放入可视化编辑器中。
侦探们正在调查一起可怕的谋杀案,据称凶手试图吃掉一名女子。
据悉,这名22岁的女子在南威尔士一家无家可归者招待所发生的令人震惊的事件中被咬伤,面部严重受伤。
但该旅店的一些邻居也声称,警方向袭击者发射泰瑟枪后,袭击者嫌疑人死亡,这名女子实施了食人行为。
格温特警方拒绝对这些指控发表评论。然而,一位了解调查情况的消息人士表示,食人行为现在是一项调查。
我通过API请求帖子,获得它们,但希望在每个段落的开头和结尾都有p标签。相反,我得到的是:
"content": "Detectives are investigating the horrific murder of a woman amid claims that the suspected killer was trying to eat her.\\r\\n\\r\\nThe 22-year-old woman is known to have been bitten and suffered terrible facial injuries in the shocking incident at a hostel for homeless people in south Wales.\\r\\n\\r\\nBut some neighbours of the hostel have also claimed the suspected attacker, who died after police fired a Taser at him, subjected the woman to an act of cannibalism.\\r\\n\\r\\nGwent police are refusing to comment on the claims. However, a source with knowledge of the investigation said that cannibalism was now a line of inquiry.",
我的WordPress编辑器或编码有问题吗?我更像是一个JavaScript程序员,第一次使用WordPress,因为我想为客户端提供一个简单的界面。