OGP: metaタグにhtml escapeされたテキストが含まれている場合unescapeされない
motoki317 opened this issue · comments
e.g. https://www.cyberagent.co.jp/careers/students/event/detail/id=28786
<meta name="Description" content="「4種類」のコースにて&quot;現場の最前線で働くプロクリエイター&quot;による3D講義「3D Academy」を開催します。">
html.AttributeのValはunescaped valueがそのまま渡ってくるので、
https://pkg.go.dev/golang.org/x/net/html@v0.10.0#Attribute
ここでescapeすべき
traQ/service/ogp/parser/parser.go
Line 113 in 7d2a76b
テストも書くとよい