MarkdownUtils

public final class MarkdownUtils
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.resultdb.utils.MarkdownUtils


Utility class for Markdown manipulation.

This class is copied from ResultDB codebase for compatibility.

Summary

Public methods

static String escape(String string)

Escapes markdown characters in the given string.

Public methods

escape

public static String escape (String string)

Escapes markdown characters in the given string.

Use this around text literals you don't want to be interpreted as markdown.

Parameters
string String: The string to escape.

Returns
String The escaped string.

Throws
NullPointerException if string is null