漂白剂:如何添加nofollow属性到现有的链接?

2024-09-29 20:22:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我知道可以链接那些还没有变成html链接的url,而Bleach会自动添加rel="nofollow"。(来源:http://bleach.readthedocs.io/en/latest/linkify.html

但是如何将nofollow属性添加到已经是html链接的url(即它们已经是<a>标记)?你知道吗


Tags: iohttpurl属性链接htmlreadthedocs来源

热门问题