Returns an HTML escaped representation of the given plain text.
(CharSequence text)
| 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) { |
no test coverage detected