aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-05-23 21:20:04 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-05-23 21:20:04 +0200
commitf6ed7c0e2cee57503de2c2582dd29536e6cfdf0a (patch)
tree560f4826fad04a1b3745c982dccc98724acfb2dc /main
parent4b14aaf18789616d44fa97d98f79deb4159f4e71 (diff)
downloadcgeo-f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a.zip
cgeo-f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a.tar.gz
cgeo-f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a.tar.bz2
doc: enhance containsHtml() description
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/utils/BaseUtils.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/utils/BaseUtils.java b/main/src/cgeo/geocaching/utils/BaseUtils.java
index 82e48cb..b8006ad 100644
--- a/main/src/cgeo/geocaching/utils/BaseUtils.java
+++ b/main/src/cgeo/geocaching/utils/BaseUtils.java
@@ -137,10 +137,11 @@ public final class BaseUtils {
}
/**
- * Quick and naive check for possible html-content of a string.
+ * Quick and naive check for possible rich HTML content in a string.
*
- * @param str
- * @return True, if <code>str</code> could contain html
+ * @param str A string containing HTML code.
+ * @return <tt>true</tt> if <tt>str</tt> contains HTML code that needs to go through a HTML renderer before
+ * being displayed, <tt>false</tt> if it can be displayed as-is without any loss
*/
public static boolean containsHtml(final String str) {
return str.indexOf('<') != -1 || str.indexOf('&') != -1;