Пример #1
0
def show_html_report(title, contents, plaintext=""):
    """
	``show_html_report`` displays the HTML contents in UI applications and plaintext in command-line
	applications. This API doesn't support hyperlinking into the BinaryView, use the BinaryView.show_html_report
	if hyperlinking is needed.

	Note: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line
	a simple text prompt is used.

	:param str contents: HTML contents to display
	:param str plaintext: Plain text version to display (used on the command-line)
	:rtype: None
	:Example:
		>>> show_html_report("title", "<h1>Contents</h1>", "Plain text contents")
		Plain text contents
	"""
    core.BNShowHTMLReport(None, title, contents, plaintext)
Пример #2
0
def show_html_report(title, contents, plaintext=""):
    """
	``show_html_report`` displays the HTML contents in UI applications and plaintext in command-line
	applications. HTML reports support hyperlinking into the BinaryView. Hyperlinks can be specified as follows:
	``binaryninja://?expr='_start'`` Where ``expr=`` specifies an expression parsable by the `parse_expression` API.

	Note: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line
	      a simple text prompt is used.

	:param str contents: HTML contents to display
	:param str plaintext: Plain text version to display (used on the command-line)
	:rtype: None
	:Example:
		>>> show_html_report("title", "<h1>Contents</h1>", "Plain text contents")
		Plain text contents
	"""
    core.BNShowHTMLReport(None, title, contents, plaintext)