繁体   English   中英

xsl 中的 html_entity_decode() 不解码任何内容

[英]html_entity_decode() in xsl not decoding anything

我正在尝试执行以下操作

<div class="floatLeft">
    <xsl:attribute name="class"
                  >mainQuestionTextNoteBellowAsterisk floatLeft</xsl:attribute>
    <xsl:copy-of 
         select="php:functionString(
                    'html_entity_decode',
                    questionbody/child::node()
                 )"/>
    <xsl:text> </xsl:text>
</div>

我已经用其他字符串修饰符替换了'html_entity_decode' ,并且即使编码也可以按预期工作,但是当我尝试解码字符串时,我得到了完全相同的字符串。 有什么我想念的吗? 下面是我用来处理 xml 的调用

$XSLTProc = new XSLTProcessor();
$XSLTProc->registerPHPFunctions();
$XSLTProc->importStyleSheet($xslDoc);

欢迎任何帮助!

谢谢

我无法解决这个确切的问题,我是如何在处理之前解码 xml 文件的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM