MCPcopy Create free account
hub / github.com/M66B/FairEmail / escapeHtml

Method escapeHtml

app/src/main/java/eu/faircode/email/HtmlEx.java:86–90  ·  view source on GitHub ↗

Returns an HTML escaped representation of the given plain text.

(CharSequence text)

Source from the content-addressed store, hash-verified

84 * Returns an HTML escaped representation of the given plain text.
85 */
86 public /* static */ String escapeHtml(CharSequence text) {
87 StringBuilder out = new StringBuilder();
88 withinStyle(out, text, 0, text.length());
89 return out.toString();
90 }
91
92 private /* static */ void withinHtml(StringBuilder out, Spanned text, int option) {
93 if ((option & TO_HTML_PARAGRAPH_FLAG) == TO_HTML_PARAGRAPH_LINES_CONSECUTIVE) {

Callers 10

getNotificationUnseenMethod · 0.80
formatPlainTextMethod · 0.80
onExecuteMethod · 0.80
onImageSelectedMethod · 0.80
getDataMethod · 0.80
getIntentIssueMethod · 0.80
handleMethod · 0.80
onMenuShareLinkMethod · 0.80
getHtmlMethod · 0.80
onExecutedMethod · 0.80

Calls 3

withinStyleMethod · 0.95
lengthMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected