Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/patch'
Ryan Kurtz80d1031d017f
diff --cc Ghidra/Framework/Gui/src/main/java/ghidra/util/HTMLUtilities.javaindex 1510663032,6b0623122b..9c1044dc10--- a/Ghidra/Framework/Gui/src/main/java/ghidra/util/HTMLUtilities.java+++ b/Ghidra/Framework/Gui/src/main/java/ghidra/util/HTMLUtilities.java@@@ -593,12 -594,11 +594,12 @@@ public class HTMLUtilities* <p>* See also <code>StringEscapeUtils#escapeHtml3(String)</code> if you need quote-safe html encoding.* <p>- *+ ** @param text plain-text that might have some characters that should NOT be interpreted as HTML+ * @param makeSpacesNonBreaking true to convert spaces into {@value #HTML_SPACE}* @return string with any html characters replaced with equivalents*/- public static String escapeHTML(String text) {+ public static String escapeHTML(String text, boolean makeSpacesNonBreaking) {StringBuilder buffer = new StringBuilder(text.length());text.codePoints().forEach(cp -> {@@@ -631,20 -628,9 +632,20 @@@return buffer.toString();}+ /**+ * Escapes any HTML special characters in the specified text.+ *+ * @param text plain-text that might have some characters that should NOT be interpreted as HTML+ * @return string with any html characters replaced with equivalents+ * @see #escapeHTML(String, boolean)+ */+ public static String escapeHTML(String text) {+ return escapeHTML(text, false);+ }+/**- * Tests a unicode code point (i.e., 32 bit character) to see if it needs to be escaped before- * being added to a HTML document because it is non-printable or a non-standard control+ * Tests a unicode code point (i.e., 32 bit character) to see if it needs to be escaped before+ * being added to a HTML document because it is non-printable or a non-standard control* character** @param codePoint character to test