Skip to content

Commit 90360a3

Browse files
Remove Android dependency from fastStripHtml function
This just makes it easier to use it in tests without any mocks.
1 parent f2f9795 commit 90360a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/HtmlUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static String stripHtml(final String text) {
3737
* @return String without HTML
3838
*/
3939
public static String fastStripHtml(String str) {
40-
if (TextUtils.isEmpty(str)) {
40+
if (str == null || str.isEmpty()) {
4141
return str;
4242
}
4343

0 commit comments

Comments
 (0)