Skip to content

Commit

Permalink
Update templates to support raw HTML on safe fields
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofr authored and Roelof Roos committed Jul 17, 2022
1 parent 2be40c7 commit 510fea4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Fixed
- Templates for `list`', `paragraph` and `table` to use raw-html statements on cleaned fields.

## [3.0.3]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion resources/views/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ ($style == 'unordered') ? '<ul>' : '<ol>' }}
@foreach ($items as $item)
<li>
{{ $item }}
{!! $item !!}
</li>
@endforeach
{{ ($style == 'unordered') ? '</ul>' : '</ol>' }}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/paragraph.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="editor-js-block">
<p>
{{ $text }}
{!! $text !!}
</p>
</div>
2 changes: 1 addition & 1 deletion resources/views/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<tr>
@foreach ($row as $content)
<td>
{{ $content }}
{!! $content !!}
</td>
@endforeach
</tr>
Expand Down

0 comments on commit 510fea4

Please sign in to comment.