Use commons.lang to unescape Html characters in title.

This commit is contained in:
Sadique Ali 2013-10-01 01:53:19 -07:00
parent a6c8687a13
commit ee167fed93
6 changed files with 15 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$/build.gradle" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="useAutoImport" value="true" />
</GradleProjectSettings>
</option>

View File

@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="commons-lang3-3.1">
<CLASSES>
<root url="jar://$PROJECT_DIR$/ShareWithTitle/libs/commons-lang3-3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

View File

@ -64,9 +64,10 @@
<excludeFolder url="file://$MODULE_DIR$/build/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android 4.2.2" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Android 4.2.2 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="android-support-v4" level="project" />
<orderEntry type="library" name="commons-lang3-3.1" level="project" />
</component>
</module>

View File

@ -10,6 +10,7 @@ apply plugin: 'android'
dependencies {
compile files('libs/android-support-v4.jar')
compile files('libs/commons-lang3-3.1.jar')
}
android {

Binary file not shown.

View File

@ -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);
}
}