奇怪的<--php标签形成数据库


Weird <!--php tags form database

当我从数据库中提取数据时,有人遇到过这个问题吗?它看起来像下面的样子,在实际的数据库表中看起来很好。

我正在使用wordpress。任何让我头疼的建议。

这些是标签

<pre><!--? if (function_exists('externalGetSociofluidButtonsForCurrentUrl'))
                {echo externalGetSociofluidButtonsForCurrentUrl();} ?-->
<!--?php DisplayVotes(get_the_ID()); ?-->
<!--?php MostVotedAllTime(); ?--></pre>

这只是注释某些PHP代码的一种糟糕方式,但由于它是HTML引号,原始代码将发送到客户端。在功能方面:

<pre><?php /* echo "this will not be executed" */ ?></pre>

<pre><!--?php echo "this will not be executed" ?--></pre>

两者都禁用了echo调用,但HTML引号版本会将注释掉的代码发送到浏览器,而使用/* */只会发送<pre></pre>