Package org.apache.camel.tooling.util
Class JavadocHelper
java.lang.Object
org.apache.camel.tooling.util.JavadocHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringsanitizeDescription(String javadoc, boolean summary) Sanitizes the javadoc to removed invalid characters so it can be used as json descriptionstatic StringEncodes the text into safe XML by replacing < > and & with XML tokens
-
Method Details
-
sanitizeDescription
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
Encodes the text into safe XML by replacing < > and & with XML tokens- Parameters:
text- the text- Returns:
- the encoded text
-