0
我在嘗試做以下html_entity_decode()在XSL不解碼任何
<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);
歡迎任何幫助!
感謝