Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <style type="text/css">
  2. ins {
  3. color: #fff;
  4. background: #5cb85c;
  5. text-decoration: none;
  6. padding: 1px 2px;
  7. }
  8. del {
  9. color: #fff;
  10. background: #d9534f;
  11. text-decoration: none;
  12. padding: 1px 2px;
  13. }
  14. </style>
  15. <?php
  16. require_once(APPPATH."libraries/HtmlDiff.php");
  17. $diff = new HtmlDiff( $contentOri, $contentCompare );
  18. $diff->build();
  19. ?>
  20. <div class="row">
  21. <div class="col-md-6">
  22. <h5 class="text-center"><strong>Original</strong></h5>
  23. <hr>
  24. <?php echo $diff->getOldHtml(); ?>
  25. </div>
  26. <div class="col-md-6">
  27. <h5 class="text-center"><strong>Editing</strong></h5>
  28. <hr>
  29. <?php echo $diff->getDifference(); ?>
  30. </div>
  31. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement