FEATURE: add line breaks into diff
This commit is contained in:
@@ -78,6 +78,6 @@ trait ContentHistory
|
||||
|
||||
public function getDiff($change)
|
||||
{
|
||||
return Differ::htmlDiff(e($change->old_value), e($change->new_value));
|
||||
return Differ::htmlDiff(nl2br(e($change->old_value)), nl2br(e($change->new_value)));
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-block">
|
||||
{!! $diff !!}
|
||||
{!! nl2br($diff) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user