How to parse as an html string in julia

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

julia> using Markdown
julia> Markdown.htmlesc("<pre>{}</pre>")
"&lt;pre&gt;&#123;&#125;&lt;/pre&gt;"
2 Likes