Home
last modified time | relevance | path

Searched refs:htmlText (Results 1 – 5 of 5) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DQuotedTextView.java243 String htmlText = getHtmlText(refMessage); in setQuotedText() local
258 quotedText.append(htmlText); in setQuotedText()
275 quotedText.append(htmlText); in setQuotedText()
286 public void setQuotedTextFromDraft(CharSequence htmlText, boolean forward) { in setQuotedTextFromDraft() argument
288 setQuotedText(htmlText); in setQuotedTextFromDraft()
295 public void setQuotedTextFromHtml(CharSequence htmlText, boolean shouldQuoteText) { in setQuotedTextFromHtml() argument
305 quotedText.append(htmlText); in setQuotedTextFromHtml()
310 setQuotedText(htmlText); in setQuotedTextFromHtml()
356 public static int findQuotedTextIndex(CharSequence htmlText) { in findQuotedTextIndex() argument
357 if (TextUtils.isEmpty(htmlText)) { in findQuotedTextIndex()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java344 public static String convertHtmlToPlainText(String htmlText) { in convertHtmlToPlainText() argument
345 if (TextUtils.isEmpty(htmlText)) { in convertHtmlToPlainText()
348 return getHtmlTree(htmlText, new HtmlParser(), new HtmlTreeBuilder()).getPlainText(); in convertHtmlToPlainText()
351 public static String convertHtmlToPlainText(String htmlText, HtmlParser parser, in convertHtmlToPlainText() argument
353 if (TextUtils.isEmpty(htmlText)) { in convertHtmlToPlainText()
356 return getHtmlTree(htmlText, parser, builder).getPlainText(); in convertHtmlToPlainText()
362 public static HtmlTree getHtmlTree(String htmlText) { in getHtmlTree() argument
363 return getHtmlTree(htmlText, new HtmlParser(), new HtmlTreeBuilder()); in getHtmlTree()
369 private static HtmlTree getHtmlTree(String htmlText, HtmlParser parser, in getHtmlTree() argument
371 final HtmlDocument doc = parser.parse(htmlText); in getHtmlTree()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlDocument.java184 public static Text createEscapedText(String htmlText, String original) { in createEscapedText() argument
185 return new EscapedText(htmlText, original); in createEscapedText()
464 private final String htmlText; field in HtmlDocument.EscapedText
467 private EscapedText(String htmlText, String originalHtml) { in EscapedText() argument
469 this.htmlText = htmlText; in EscapedText()
474 text = StringUtil.unescapeHTML(htmlText); in getText()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DTextUtilities.java344 /*package*/ static int findTagEnd(String htmlText, String tag, int startPos) { in findTagEnd() argument
348 int length = htmlText.length(); in findTagEnd()
351 char c = htmlText.charAt(i); in findTagEnd()
361 return htmlText.indexOf("/" + tag, startPos); in findTagEnd()
/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java348 public static String stripHtml(final String htmlText) { in stripHtml() argument
350 final Spanned markup = Html.fromHtml(htmlText); in stripHtml()