gpt4 book ai didi

php - 是否有与 PHP 函数 htmlspecialchars() 等效的 Python?

转载 作者:IT王子 更新时间:2023-10-29 00:03:45 25 4
gpt4 key购买 nike

Python 中是否有与 PHP 函数 htmlspecialchars() 相似或等效的函数?到目前为止我发现的最接近的东西是 htmlentitydefs.entitydefs()。

最佳答案

我知道的最接近的是 cgi.escape .

关于php - 是否有与 PHP 函数 htmlspecialchars() 等效的 Python?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/931423/

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