Open sanderploegsma opened 5 years ago
Someone in the #ktor channel on Slack pointed me in the following direction:
meta {
attributes["prefix"] = "og http://ogp.me/ns#"
attributes["property"] = "og:title"
content = "title"
}
Although not perfect, it's a better solution than raw HTML inside unsafe
The current implementation of HTML
<meta>
tags only include thename
andcontent
attributes, which makes it impossible to add OpenGraph tags, which are specified as follows [1]:As a workaround, it's possible to wrap the raw HTML inside
unsafe
, but I'd prefer not to.[1] http://ogp.me/