我现在有一个代码片段,我想将其转换为字符串。无法找到任何解决方案。我该怎么做?
这是我的 JavaScript:
<html>
<head>
</head>
<body style="background-color:#FFFFFF;color:#000000;">
<p>
<a href="tel:133300">
<img src="http://www.biznessapps.com/imghost/0/52/104345/NewcastleTaxis.jpg" alt="" width="257" height="108" />
</a>
</p>
<p>
<strong>
<span style="font-size: small; font-family: arial,helvetica,sans-serif;">Taxi Services</span>
</strong><br />
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">Ring for a taxi and share the fare with a friend</span>
</p>
<p>
<span style="font-family: arial,helvetica,sans-serif; font-size: small;"><a href="tel:133300">Call 133 300</a></span>
</p>
<p>
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">Taxis only pick up from the following secure ranks between 12am to 5am.</span><br />
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">• Kent Hotel and Exchange Hotel (Beaumont St), Hamilton</span><br />
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">• King St Hotel (corner of King and Steel St), Newcastle</span><br />
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">• Fanny’s (Centenary Rd), Newcastle</span><br />
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">• The Brewery (Wharf Rd), Newcastle</span>
</p>
<p>
<span style="font-family: arial,helvetica,sans-serif; font-size: small;">For more information visit <a href="http://www.newcastletaxis.com.au" target="_blank">www.newcastletaxis.com.au</a></span>
</p>
</body>
</html>