我如何 post link 在 html 中对 youtube 发表评论
How I can post link in html to youtube comment
我正在尝试 post 在 YouTube 上发表评论 html link,但不知为何我做不到。它总是在评论部分显示 html 代码。我正在使用 php 函数
$comment = '<a href="http://shawon.in">Shawon</a>';
$commen = html_entity_decode($comment);
它将输出显示为 $comment
中的 html 代码。或者告诉我哪种内容类型适用于此。
你能帮帮我吗?
好像是不可能的:https://developers.google.com/youtube/2.0/developers_guide_protocol_comments
A comment is a text response to a video. Logged-in users can add comments to a video but cannot modify or delete those comments. In addition, please note that YouTube will convert any HTML markup that appears in a comment into plain text. Typically, a user would add a comment to a video after watching that video.
我正在尝试 post 在 YouTube 上发表评论 html link,但不知为何我做不到。它总是在评论部分显示 html 代码。我正在使用 php 函数
$comment = '<a href="http://shawon.in">Shawon</a>';
$commen = html_entity_decode($comment);
它将输出显示为 $comment
中的 html 代码。或者告诉我哪种内容类型适用于此。
你能帮帮我吗?
好像是不可能的:https://developers.google.com/youtube/2.0/developers_guide_protocol_comments
A comment is a text response to a video. Logged-in users can add comments to a video but cannot modify or delete those comments. In addition, please note that YouTube will convert any HTML markup that appears in a comment into plain text. Typically, a user would add a comment to a video after watching that video.