我有一個HTMLEditor,我輸入了「我的簡單文本」。如何獲得只有來自Javafx2的文本HTMLEditor
@FXML
public HTMLEditor htmlEditor;
說
htmlEditor.getHtmlText();
這回
<html><head></head><body contenteditable="true"><p style="text-align: left;"><font face="'Segoe UI'">My Simple Text</font></p></body></html>
但想不HTML標記文本即
My Simple Text
how can i do it?
使用文本區... –
@ UlukBiy其實這是gui要求但在後端我只需要簡單的文本字符串,所以我不能使用TextArea。 –