Questions tagged [fromhtml]

44 questions
1
vote
1 answer

How to convert HTML String with RGB colors to HTML String with HEX colors in Android JAVA

I've the following html text (Exemple) :

This is a test !!

I'm trying to display this text in a…
Joel
  • 192
  • 12
1
vote
1 answer

TextView - how to display simple URLs and hyper links

Two input string, for example: 1. Hyper link input: "Что случилось с паролями в логах Twitter" 2. Simple…
Maxim Petlyuk
  • 1,014
  • 14
  • 20
1
vote
2 answers

fromHtml: Different behaviour on JellyBean and KitKat (and above)

I am using fromHtml to display formatted text (bold italic etc) in TextView. However, I found it's behaviour is different on JellyBean (4.1.2) and KitKat(4.4.2) Here is code: String myHtml = "hello😄"; Spanned spanned =…
Atul
  • 3,778
  • 5
  • 47
  • 87
1
vote
0 answers

Android Html.fromHtml tag "strike" does not works

I found this solution and it doesn't works for me. What I am doing wrong? I used it: tv.setText(Html.fromHtml("111 222", null, new MyHtmlTagHandler()); but "111" showing as not strike out( sorry if I am wrong, I am nub here)
Denis K
  • 71
  • 5
1
vote
1 answer

Converting HTML div to pdf using jsPDF shows doc.fromHTML is not a function

I am trying convert the html div element to pdf file using jspdf. i have included all js script including form_html.js. still i am getting "TypeError: doc.fromHTML is not a function".