使用htmlentities

时间:2012-08-25 08:11:41

标签: php javascript mysql ckeditor mathml

嘿大家我试图通过我为CKeditor创建的自定义插件从mysql数据库中检索mathml。但由于某种原因,每当使用mathml插入段落标记时,我试图创建的插件都拒绝打开。我怀疑这与使用htmlentities有关。如果有人能够在插件对话框的选择框中检索数据时如何应用htmlentities,我将不胜感激。我实际上想知道如何在项目中使用htmlentities函数:

               items:[
                    <?php $i = 1;
               while($row = mysql_fetch_assoc($queryResource))
                  {

                     if($i == 1) {
                        echo "['$row[expressionname]','$row[mathexpression]']";
                        $i = null;
                     }
                     else
                        echo "['$row[expressionname]','$row[mathexpression]']";
                  }
               ?>],

                commit : function( data )
        {
            data.equations = this.getValue();
        }


              }]

0 个答案:

没有答案
相关问题