Fix issue 1592: Not possible to send < > in chat messages
This commit is contained in:
parent
d6890b4a27
commit
b8b45c024b
1 changed files with 6 additions and 0 deletions
|
@ -272,6 +272,12 @@ public class BubbleChat {
|
|||
}
|
||||
|
||||
public static Spanned getTextWithHttpLinks(String text) {
|
||||
if (text.contains("<")) {
|
||||
text = text.replace("<", "<");
|
||||
}
|
||||
if (text.contains(">")) {
|
||||
text = text.replace(">", ">");
|
||||
}
|
||||
if (text.contains("http://")) {
|
||||
int indexHttp = text.indexOf("http://");
|
||||
int indexFinHttp = text.indexOf(" ", indexHttp) == -1 ? text.length() : text.indexOf(" ", indexHttp);
|
||||
|
|
Loading…
Reference in a new issue