Package net.sourceforge.pmd.docs
Class EscapeUtils
- java.lang.Object
-
- net.sourceforge.pmd.docs.EscapeUtils
-
public final class EscapeUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>escapeLines(List<String> lines)static StringescapeMarkdown(String unescaped)static StringescapeSingleLine(String line)static StringpreserveRuleTagQuotes(String text)If quotes are used for rule tags, e.g.
-
-
-
Method Detail
-
preserveRuleTagQuotes
public static String preserveRuleTagQuotes(String text)
If quotes are used for rule tags, e.g.{% rule "OtherRule" %}, these quotes might have been escaped for html, but it's actually markdown/jekyll/liquid and not html. This undoes the escaping.- Parameters:
text- the already escaped text that might contain rule tags- Returns:
- text with the fixed rule tags
-
-