pyrit.exceptions.remove_markdown_json

pyrit.exceptions.remove_markdown_json#

remove_markdown_json(response_msg: str) str[source]#

Checks if the response message is in JSON format and removes Markdown formatting if present.

Parameters:

response_msg (str) – The response message to check.

Returns:

The response message without Markdown formatting if present.

Return type:

str