def format_freshdesk_ticket_creation_message(ticket):
 cleaned_description = convert_html_to_markdown(ticket.description)
 content = ('%s <%s> created [ticket #%s](%s):\n\n' % (ticket.requester_name, ticket.requester_email, ticket.id, ticket.url))
 content += ('~~~ quote\n%s\n~~~\n\n' % (cleaned_description,))
 content += ('Type: **%s**\nPriority: **%s**\nStatus: **%s**' % (ticket.type, ticket.priority, ticket.status))
 return content

def format_freshdesk_ticket_creation_message ( ticket ) : cleaned_description = convert_html_to_markdown ( ticket . description ) content = ( '%s <%s> created [ticket #%s](%s):\n\n' % ( ticket . requester_name , ticket . requester_email , ticket . id , ticket . url ) ) content += ( '~~~ quote\n%s\n~~~\n\n' % ( cleaned_description , ) ) content += ( 'Type: **%s**\nPriority: **%s**\nStatus: **%s**' % ( ticket . type , ticket . priority , ticket . status ) ) return content
they send us the description as html .