Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- ins {
- color: #fff;
- background: #5cb85c;
- text-decoration: none;
- padding: 1px 2px;
- }
- del {
- color: #fff;
- background: #d9534f;
- text-decoration: none;
- padding: 1px 2px;
- }
- </style>
- <?php
- require_once(APPPATH."libraries/HtmlDiff.php");
- $diff = new HtmlDiff( $contentOri, $contentCompare );
- $diff->build();
- ?>
- <div class="row">
- <div class="col-md-6">
- <h5 class="text-center"><strong>Original</strong></h5>
- <hr>
- <?php echo $diff->getOldHtml(); ?>
- </div>
- <div class="col-md-6">
- <h5 class="text-center"><strong>Editing</strong></h5>
- <hr>
- <?php echo $diff->getDifference(); ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement