diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2013-05-23 21:20:04 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2013-05-23 21:20:04 +0200 |
commit | f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a (patch) | |
tree | 560f4826fad04a1b3745c982dccc98724acfb2dc /main/src | |
parent | 4b14aaf18789616d44fa97d98f79deb4159f4e71 (diff) | |
download | cgeo-f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a.zip cgeo-f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a.tar.gz cgeo-f6ed7c0e2cee57503de2c2582dd29536e6cfdf0a.tar.bz2 |
doc: enhance containsHtml() description
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/utils/BaseUtils.java | 7 |
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; |