Skip to content

Commit

Permalink
Remove Android dependency from fastStripHtml function
Browse files Browse the repository at this point in the history
This just makes it easier to use it in tests without any mocks.
  • Loading branch information
hichamboushaba committed Sep 9, 2024
1 parent f2f9795 commit 90360a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static String stripHtml(final String text) {
* @return String without HTML
*/
public static String fastStripHtml(String str) {
if (TextUtils.isEmpty(str)) {
if (str == null || str.isEmpty()) {
return str;
}

Expand Down

0 comments on commit 90360a3

Please sign in to comment.