Hi everyone.
I'm new to Atlassian API and Velocity language, but I have to create my macro for exporting comments into PDF file.
I can successfully access the comments with smth like
#set ($comments = $content.getComments())
#foreach( $comment in $comments )
#set ($commentBody = $comment.getContentEntityObject().getBodyAsString())
$commentBody
#end
but seems like comments are returned to me in XHTML-type.
Attached screenshots show the example of original comment and its exported representation. How can I correctly render it?

