How to parse as an html string in julia

So, in python with import html it would be easy to do:

def htmlize(obj):
 content = html.escape(repr(obj))
 return '<pre>{}</pre>'.format(content)

html.ecape basically converts the characters & , < and > in string s to HTML. Is there an equivalent for julia?

The Markdown stdlib module has htmlesc which you can use for this

julia> using Markdown
julia> Markdown.htmlesc("<pre>{}</pre>")