Skip to content

Commit

Permalink
fix: escape link label (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruskal authored and enell committed Feb 9, 2023
1 parent 4f46df5 commit 6d511d8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -6,6 +6,7 @@
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.text.Html;
import android.util.Log;
import android.graphics.Paint;
import android.graphics.Rect;
Expand Down Expand Up @@ -153,7 +154,7 @@ private void setupUrl() {
} else {
this.linkUrl = "";
}
this.linkLabel = urlLabel;
this.linkLabel = Html.escapeHtml(urlLabel);
}

@Override
Expand Down

0 comments on commit 6d511d8

Please sign in to comment.