最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - Wordpress editor not creating <p><p> tags properly in tables

programmeradmin2浏览0评论

Wordpress isn't creating paragraph tags properly for paragraphs in a table. For example, the following in the Wordpress text editor:

<table style="border-collapse: collapse; width: 100%;">
<tbody>
<tr>
<td style="width: 100%;">a

b

c</td>
</tr>
</tbody>
</table>
a

b

c

Results in this HTML:

<table style="border-collapse: collapse; width: 100%;">
<tbody>
<tr>
<td style="width: 100%;">a</p>
<p>b</p>
<p>c</td>
</tr>
</tbody>
</table>
<p>a</p>
<p>b</p>
<p>c</p>

There are HTML errors in the table with the paragraph p tags, but outside the table isn't fine. Why is this the case and how can I solve it?

发布评论

评论列表(0)

  1. 暂无评论