我在 php 文件中调用 AJAX url 并通过 CURL 获取其内容。但是我得到的 HTML 充满了 \r,\t 和 \n.Divs 也被扭曲了。我该如何处理。这是完整 HTML 文本的一小部分。
<html>
<head>
<title></title>
</head>
<body>
id=
"\"moreCount\"">491-500</span>\r\n\r\n\r\n\t
<div id="\"propSearchMainWrap\"">\r\n\t\t
<div class="\"propSearchMainContent\"">\r\n\t\t\t
<div>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
<div class="\"searchDtlLeftN\"" style="\"width:">
\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t<input type=
"\'checkbox\'" name=
"\'checkbox10374276\'\r\n\t\t\t\t\t\tid=\'checkbox10374276\'\r\n\t\t\t\t\t\tonmouseout=\"hideToolTipCheckboxCount(\'tool_tip10374276\');\"\r\n\t\t\t\t\t\tonmouseover=\"showToolTipCheckboxCount(\'tool_tip10374276\',\'Property\');\"">\r\n\t\t\t\t\t
<div id="\'tool_tip10374276\'\r\n\t\t\t\t\t\tstyle=\'display:"
width:="" position:="" z-index:="" padding:=""></div>
\r\n\t\t\t\t\r\n\t\t\t\t <b><a target="\"_blank\"" href=
"/"/propertyDetails/5-BHK-3000-Sq-ft-Residential-House-FOR-Sale-Cookes-Town-in-Bangalore&id=Q8oDBbaV2WFzpSvf+uAgZw==/"">
5 BHK Residential House for Sale in Cookes
Town</a>\r\n\t\t\t\t</b>\r\n\t\t\t</div>
\r\n\t\t\t
<!-- added by narendra -->\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t
<div style="\"width:"></div>
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t
<!-- added by narendra -->\r\n\t\t</div>
\r\n\t\t
<div>\r\n\t\t\t<!--left panel start-->\r\n\t\t\t
<div class="\"searchDetailPanelLft\"">\r\n\r\n\t\t\t\t
<div class="\"searchDetailSubBox1\"">\r\n\t\t\t\t\t
<!--content start-->\r\n\t\t\t\t\t
<div class="\"search_packageImg\"">
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<img alt="\"Premium\""
title=
"\"Premium\"\r\n\t\t\t\t\t\t\t\tsrc=\"/images/premium-img.gif\"">\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</div>