在WordPress里,文章内容、标题和评论中,连续的两个减号(–)会被转义成–(–),三个减号(—)转义成—(—)。
查看数据库,发现里面保存的仍然是原始的减号,只是在显示的时候做了转义。
原因是wp-includes/functions-formatting.php里的wptexturize函数在作怪。可以尝试自己修改代码,也可以用这个插件来禁用该函数。
Tags: WordPress
This entry was posted on 星期一, 12 9 月, 2016 at 10:09 and is filed under 东东博客. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Name (required)
Mail (will not be published) (required)
Website
Δ