如何修复此 wpml 函数的 html 输出?

How to fix html output on this wpml function?

我在我的 WP 网站上使用 wpml 插件进行翻译,但这个功能有问题 wpml_element_link 它不会在浏览器上呈现 html。它显示 html 为纯文本,你能帮我吗?

$text = sprintf(__('Credit (s)' ,'mke'), 100);
apply_filters( 'wpml_element_link', 43772, 'page',__('<span class="my-credit">'. $text .'</span>') );

我希望 html class 应用于我的元素。

谢谢

我使用 html 解码功能解决了这个问题,效果非常好!谢谢大家的帮助。