gpt4 book ai didi

php - 我如何将html中的链接发布到YouTube评论

转载 作者:行者123 更新时间:2023-12-03 05:31:52 24 4
gpt4 key购买 nike

我正在尝试在YouTube评论上发布html链接,但是有些方法我做不到。它总是在注释部分显示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.

关于php - 我如何将html中的链接发布到YouTube评论,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35498612/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com