jdoc:include 在 <input type="button"?
jdoc:include inside an <input type="button"?
我在网站上工作时遇到了问题。
我有一个 <input type="button"...
,如果我将 <jdoc:include..../>
标签放在 "value" 语句中,如下所示:
<input type="button" value="<jdoc:include type="modules" name="left-top" style="xhtml"/>">
它不起作用,因为“”是假的。
所以我的问题是:我怎样才能做对?
谢谢!
1 年零 10 个月后找到解决方案。
正如@Darren Sweeney 在评论中已经提到的,我不得不像这样转义代码:
<input type="button" value="<jdoc:include type='modules' name='left-top' style='xhtml'/>">
我在网站上工作时遇到了问题。
我有一个 <input type="button"...
,如果我将 <jdoc:include..../>
标签放在 "value" 语句中,如下所示:
<input type="button" value="<jdoc:include type="modules" name="left-top" style="xhtml"/>">
它不起作用,因为“”是假的。
所以我的问题是:我怎样才能做对?
谢谢!
1 年零 10 个月后找到解决方案。 正如@Darren Sweeney 在评论中已经提到的,我不得不像这样转义代码:
<input type="button" value="<jdoc:include type='modules' name='left-top' style='xhtml'/>">