getContent.php 517 B

12345678910111213141516171819
  1. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  2. <script src="../../ueditor.parse.js" type="text/javascript"></script>
  3. <script>
  4. uParse('.content',{
  5. 'rootPath': '../'
  6. })
  7. </script>
  8. <?php
  9. //获取数据
  10. error_reporting(E_ERROR|E_WARNING);
  11. $content = htmlspecialchars(stripslashes($_POST['myEditor']));
  12. //存入数据库或者其他操作
  13. //显示
  14. echo "第1个编辑器的值";
  15. echo "<div class='content'>".htmlspecialchars_decode($content)."</div>";