Lines Matching refs:body

66     /** A less-than-perfect pattern to pull out <body> content */
68 "(?:<\\s*body[^>]*>)(.*)(?:<\\s*/\\s*body\\s*>)",
70 /** Match group in {@code BODDY_PATTERN} for the body HTML */
77 /** Index of the plain text version of the message body */
79 /** Index of the HTML version of the message body */
85 * Returns just the content between the <body></body> tags. This is not perfect and breaks
87 * the <body> tag (e.g. a '>' in a java script block).
92 return match.group(BODY_PATTERN_GROUP); // Found body; return
101 /*package*/ static String getHtmlAlternate(Body body, boolean useSmartReply) {
102 if (body.mHtmlReply == null) {
106 String htmlContent = TextUtils.htmlEncode(body.mTextContent); // Escape HTML reserved chars
109 if (body.mIntroText != null) {
110 String htmlIntro = TextUtils.htmlEncode(body.mIntroText);
115 String htmlBody = getHtmlBody(body.mHtmlReply);
122 * Gets both the plain text and HTML versions of the message body.
124 /*package*/ static String[] buildBodyText(Body body, int flags, boolean useSmartReply) {
126 if (body == null) {
129 String text = body.mTextContent;
134 String intro = body.mIntroText == null ? "" : body.mIntroText;
144 String quotedText = body.mTextReply;
145 // If there is no plain-text body, use de-tagified HTML as the text body
146 if (quotedText == null && body.mHtmlReply != null) {
147 quotedText = Html.fromHtml(body.mHtmlReply).toString();
169 messageBody[INDEX_BODY_HTML] = getHtmlAlternate(body, useSmartReply);
216 Body body = Body.restoreBodyWithMessageId(context, message.mId);
217 String[] bodyText = buildBodyText(body, message.mFlags, useSmartReply);
233 // continue with multipart headers, then into multipart body
249 // Finish headers and prepare for body section(s)
252 // first multipart element is the body
401 * Write the body text. If only one version of the body is specified (either plain text
426 // continue with multipart headers, then into multipart body
431 // Finish headers and prepare for body section(s)
436 // first multipart element is the body