我想在this鏈接從「步驟」陣解析「html_instructions」字符串:如何解析和格式化Google Directions JSON?
我沒有問題解析字符串,但它在混合碼位返回例如,分析的字符串的:
"html_instructions" : "Head \u003cb\u003esouthwest\u003c/b\u003e toward \u003cb\u003eCapitol Square SW\u003c/b\u003e",
顯示爲:
Head southwest towards...
:
Head<br>southwest"</br>"towards<br>...
而不是簡單地表現爲中
有沒有一種方法,我可以格式化字符串以刪除「休息」?任何幫助是極大的讚賞。
工程就像一個魅力。謝謝。 – 2012-08-07 06:20:14