fix html escapes in API pre blocks