diff --git a/.idea/gradle.xml b/.idea/gradle.xml index a9986e4..6260347 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -3,7 +3,7 @@ diff --git a/.idea/libraries/commons_lang3_3_1.xml b/.idea/libraries/commons_lang3_3_1.xml new file mode 100644 index 0000000..344d060 --- /dev/null +++ b/.idea/libraries/commons_lang3_3_1.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/ShareWithTitle/ShareWithTitle.iml b/ShareWithTitle/ShareWithTitle.iml index f3f55f8..b826227 100644 --- a/ShareWithTitle/ShareWithTitle.iml +++ b/ShareWithTitle/ShareWithTitle.iml @@ -64,9 +64,10 @@ - + + diff --git a/ShareWithTitle/build.gradle b/ShareWithTitle/build.gradle index 95d6226..48b66f4 100644 --- a/ShareWithTitle/build.gradle +++ b/ShareWithTitle/build.gradle @@ -10,6 +10,7 @@ apply plugin: 'android' dependencies { compile files('libs/android-support-v4.jar') + compile files('libs/commons-lang3-3.1.jar') } android { diff --git a/ShareWithTitle/libs/commons-lang3-3.1.jar b/ShareWithTitle/libs/commons-lang3-3.1.jar new file mode 100644 index 0000000..a85e539 Binary files /dev/null and b/ShareWithTitle/libs/commons-lang3-3.1.jar differ diff --git a/ShareWithTitle/src/main/java/in/sdqali/sharewithtitle/TitleParser.java b/ShareWithTitle/src/main/java/in/sdqali/sharewithtitle/TitleParser.java index 6399364..dca8af7 100644 --- a/ShareWithTitle/src/main/java/in/sdqali/sharewithtitle/TitleParser.java +++ b/ShareWithTitle/src/main/java/in/sdqali/sharewithtitle/TitleParser.java @@ -1,5 +1,6 @@ package in.sdqali.sharewithtitle; +import org.apache.commons.lang3.StringEscapeUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -11,6 +12,6 @@ public class TitleParser { while (m.find()) { title = m.group(1); } - return title; + return StringEscapeUtils.unescapeHtml4(title); } } \ No newline at end of file