Stop WordPress from enclosing script in CDATA

前端 未结 2 369
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 02:53

I am importing HTML pages using HTML import plugin for WordPress.

I have a code snippet for google maps, which is imported.

However, after import, it enclos

相关标签:
2条回答
  • 2021-01-14 03:13
    $content = str_replace(']]>', ']]>', $content);
    

    wp-includes\post-template.php line 167

    0 讨论(0)
  • 2021-01-14 03:14

    You can also do in this way in template page file:

       <?php $content = str_replace(']]&gt;', ']]>', the_content()); echo $content; ?>
    
    0 讨论(0)
提交回复
热议问题