String S =「• 1961年所得稅法第40(a)(ia)條的規定不僅適用於顯示爲應付的金額資產負債表日期,但適用於上年度有關支出,並在上一年度實際支付的支出。如何顯示項目符號在android webview
這裏•是子彈,但我無法顯示子彈在Android網絡視圖貝洛是我的代碼,我已經厭倦瞭解碼此,但林無法顯示,請告訴我怎麼會對其進行修復,其中正在做錯誤
public class MainActivity extends Activity {
WebView web1;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String S = " • The provisions of section 40(a)(ia) of the Income Tax Act, 1961, are applicable not only to the amount which is shown as payable on the date of balance-sheet, but it is applicable to such expenditure, which become payable at any time during the relevant previous year and was actually paid within the previous year";
web1=(WebView)findViewById(R.id.webView1);
web1.loadData(S, "text/html", "UTF-8");
}
}
我已經修復了我的問題使用String re =「(?:&#(\\ d +);)」;這種模式 – user2372154