Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript cleditor内容充斥着<;span>;标签_Javascript_Cleditor - Fatal编程技术网

Javascript cleditor内容充斥着<;span>;标签

Javascript cleditor内容充斥着<;span>;标签,javascript,cleditor,Javascript,Cleditor,我在WordPress插件中选择了富文本编辑器 然而,它似乎是随机地决定在我的内容中插入 我在谷歌上快速搜索了一下,找不到任何关于cleditor的东西,但显然cleditor有一个问题-我网站上的两位内容作者都使用谷歌浏览器。这是一个很好的例子 除了在保存或查看内容时执行PHPstr_replace,还有人知道如何解决这个问题吗 以下是一个输出示例: <h2 id="notes" class="profile_notes">Notes</h2> <p>

我在WordPress插件中选择了富文本编辑器

然而,它似乎是随机地决定在我的内容中插入

我在谷歌上快速搜索了一下,找不到任何关于
cleditor
的东西,但显然
cleditor
有一个问题-我网站上的两位内容作者都使用谷歌浏览器。这是一个很好的例子

除了在保存或查看内容时执行PHP
str_replace
,还有人知道如何解决这个问题吗

以下是一个输出示例:

<h2 id="notes" class="profile_notes">Notes</h2>
<p>
    <span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">
        <div>
            This species is assigned the codes A220, A221 and A222 under the DATZ 'A' number system with these referring to similar-looking, possibly conspecific, populations. These differ in some aspects of colour pattern, particularly the orientation of the caudal-fin markings which may be horizontal, vertical, or somewhere inbetween.
        </div>
        <div>
            <br>
        </div>
        <div>
            One population displays an orange colouration on the belly and is sometimes referred to as A. mendezi 'orange' (A222) while another known as A. sp. 'fork-band' or 'gabelband' and collected in the rio Jaú may also represent a form of A. mendezi.
        </div>
        <div>
            <span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">
                <br>
            </span>
        </div>
            Apistogramma&nbsp;is...
        </div>
    </span>
</p>
注释

该物种在DATZ“A”编号系统下被分配代码A220、A221和A222,这些代码表示外观相似,可能是同种的种群。它们在颜色模式的某些方面有所不同,特别是尾鳍标记的方向可能是水平、垂直或介于两者之间的某处。

一个种群的腹部呈橙色,有时被称为A.mendezi‘橙色’(A222),而另一个被称为A.sp.‘分叉带’或‘gabelband’并在里约ú采集的种群也可能代表A.mendezi的一种形式。
蜂窝蜂是。。。

提前感谢,

这是在javascript中调用
execcommand
时出现的一个“功能”(在不同的浏览器中有不同的结果),在

我不知道这是否可以在浏览器中规避,但我怀疑这一点。最好的方法是使用lxml或BeautifulSoup在后端剪切“有问题的”HTML类。

这是一个“特性”,在javascript中调用
execcommand
时出现(在不同的浏览器中有不同的结果),在

我不知道这是否可以在浏览器中规避,但我怀疑这一点。最好的方法是使用lxml或BeautifulSoup在后端剪切“有问题的”HTML类