Class JavadocHelper


  • public final class JavadocHelper
    extends Object
    • Method Detail

      • sanitizeDescription

        public static String sanitizeDescription​(String javadoc,
                                                 boolean summary)
        Sanitizes the javadoc to removed invalid characters so it can be used as json description
        Parameters:
        javadoc - the javadoc
        Returns:
        the text that is valid as json
      • xmlEncode

        public static String xmlEncode​(String text)
        Encodes the text into safe XML by replacing < > and & with XML tokens
        Parameters:
        text - the text
        Returns:
        the encoded text