You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public @NotNull String escapeSpecialChars(@NotNull String text) {
if (!myHtmlConverterOptions.skipCharEscape) {
text = text.replace("\\", "\\\\");
text = text.replace("*", "\\*");
text = text.replace("~", "\\~");
text = text.replace("^", "\\^");
text = text.replace("&", "\\&");
text = text.replace("<", "\\<").replace(">", "\\>");
text = text.replace("[", "\\[").replace("]", "\\]");
text = text.replace("|", "\\|").replace("`", "\\`");
text = text.replace("\u00A0", myHtmlConverterOptions.nbspText);
}
return text;
}
The last two lines of output are the same, ### should become \###
The text was updated successfully, but these errors were encountered: