drwj4061 2015-03-20 18:53
浏览 534

为什么WordPress HTML编辑器会删除<p>标签和<br>? 我们可以阻止这个吗?

I need to make some static pages in WordPress I like to make it through HTML editor as I need to change text regularly. My page layout is not looking good as the HTML editor removing <p> and <br> tags.

For example if I am entering below HTML in editor through 'text' mode.

<p>Some Text</P>
<a>google.com</a>

click on 'Visual' tab and again switch to 'text' mode, then the HTML will change like below.

Some Text
<a>google.com</a>

I have installed "Tinymce-advanced" and configured setting to stop removing <p> tag and <br/> tag. Then it stop removing <p> tag but then the editor start adding <p> tags randomly for example then above HTML code will be looking like below.

<p>Some Text</p>
<p><a>google.com</a></p>

Kindly share your suggestions

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?