【问题标题】:Wordpress custom text widget html supportWordpress 自定义文本小部件 html 支持
【发布时间】:2017-07-13 23:12:39
【问题描述】:

我有一个自定义文本小部件,但我无法在其中编写 html 代码。 有没有办法为自定义小部件添加 html 支持?

注意:我知道有 Wordpress 文本小部件,但我必须使用这个自定义小部件。

这是我的代码:https://codepaste.net/ct4yee

感谢您的帮助!

【问题讨论】:

    标签: php wordpress custom-widgets


    【解决方案1】:

    您的脚本正在调用 strip_tags() 来删除 HTML 标记。见http://php.net/manual/en/function.strip-tags.php

    【讨论】:

    • 大错特错!非常感谢,感谢您的帮助:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-16
    • 1970-01-01
    • 2018-03-09
    • 1970-01-01
    • 2016-08-20
    • 1970-01-01
    • 2013-08-24
    相关资源
    最近更新 更多