Skip to content

How handle with special characters in emotions characters via this Html.fromHtml method #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

I am facing problem in formating and setting text view in android if any 
special character comes(starting Html tags like < and </) during Html formatting

TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");


What is the expected output? What do you see instead?

Expected output should contains string with emotions character like </3 or <3



Please provide any additional information below.
but in actual in this case string automatically truncate after < or </ .

Original issue reported on code.google.com by neoavato...@gmail.com on 29 Mar 2011 at 8:24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions