MCPcopy Create free account
hub / github.com/diyhi/bbs / convertToReference

Method convertToReference

src/main/java/cms/utils/HtmlEscape.java:63–80  ·  view source on GitHub ↗
(char character)

Source from the content-addressed store, hash-verified

61
62
63 @Nullable
64 private static String convertToReference(char character) {
65 switch (character){
66 case '<':
67 return "&lt;";
68 case '>':
69 return "&gt;";
70 /**
71 case '"':
72 return "&quot;";
73 case '&':
74 return "&amp;";
75 case '\'':
76 return "&#39;";**/
77 }
78
79 return null;
80 }
81
82
83 /**

Callers 1

escapeSymbolMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected