Commit 1d144024 authored by Grigory Fedorov's avatar Grigory Fedorov

Merge pull request #368 from aelmahmoudy/html_tags

Process HTML tags
parents b273a762 ff0fc6d3
...@@ -17,6 +17,7 @@ package com.xabber.android.data.message; ...@@ -17,6 +17,7 @@ package com.xabber.android.data.message;
import java.util.Date; import java.util.Date;
import android.text.Spannable; import android.text.Spannable;
import android.text.Html;
import android.text.util.Linkify; import android.text.util.Linkify;
import com.xabber.android.utils.Emoticons; import com.xabber.android.utils.Emoticons;
...@@ -150,7 +151,7 @@ public class MessageItem implements Comparable<MessageItem> { ...@@ -150,7 +151,7 @@ public class MessageItem implements Comparable<MessageItem> {
public Spannable getSpannable() { public Spannable getSpannable() {
if (spannable == null) { if (spannable == null) {
spannable = Emoticons.newSpannable(text); spannable = Emoticons.newSpannable(Html.fromHtml(text));
Linkify.addLinks(this.spannable, Linkify.ALL); Linkify.addLinks(this.spannable, Linkify.ALL);
XMPPUri.addLinks(this.spannable); XMPPUri.addLinks(this.spannable);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment