wpseek.com
WordPress开发者和主题制作者的搜索引擎



esc_xml › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( 'esc_xml', $safe_text, $text )
参数: (2)
  • () safe_text The text after it has been escaped.
    Required: Yes
  • () text The text prior to being escaped.
    Required: Yes
定义在:
文档:

Filters a string cleaned and escaped for output in XML.

Text passed to esc_xml() is stripped of invalid or special characters before output. HTML named character references are converted to their equivalent code points.




源码

return apply_filters( 'esc_xml', $safe_text, $text );