Use commons.lang to unescape Html characters in title.
This commit is contained in:
parent
a6c8687a13
commit
ee167fed93
@ -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>
|
||||
|
9
.idea/libraries/commons_lang3_3_1.xml
Normal file
9
.idea/libraries/commons_lang3_3_1.xml
Normal 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>
|
@ -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>
|
||||
|
||||
|
@ -10,6 +10,7 @@ apply plugin: 'android'
|
||||
|
||||
dependencies {
|
||||
compile files('libs/android-support-v4.jar')
|
||||
compile files('libs/commons-lang3-3.1.jar')
|
||||
}
|
||||
|
||||
android {
|
||||
|
BIN
ShareWithTitle/libs/commons-lang3-3.1.jar
Normal file
BIN
ShareWithTitle/libs/commons-lang3-3.1.jar
Normal file
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user