MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / encodeEntity

Method encodeEntity

vm/JavaAPI/src/java/net/URIHelper.java:179–186  ·  view source on GitHub ↗

Encode an HTML entity.

(char ch)

Source from the content-addressed store, hash-verified

177 * Encode an HTML entity.
178 */
179 static String encodeEntity(char ch) {
180 for (int i = 0; i < HTML_ENTITIES.length; i++) {
181 if (HTML_ENTITIES[i] == ch) {
182 return HTML_ENCODED_ENTITIES[i];
183 }
184 }
185 return null;
186 }
187
188 /**
189 * Utility method for encoding HTML entities within query parameters.

Callers 1

encodeEntitiesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected