Class EscapeUtils


  • public final class EscapeUtils
    extends Object
    • Method Detail

      • escapeMarkdown

        public static String escapeMarkdown​(String unescaped)
      • escapeSingleLine

        public static String escapeSingleLine​(String line)
      • 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