Skip to content

Commit

Permalink
Merge pull request #80 from Harrk/bugfix/list-html-encoded-entities
Browse files Browse the repository at this point in the history
Ensure html and list components render the HTML as expected
  • Loading branch information
Roelof Roos authored Sep 25, 2022
2 parents 4f9de04 + 7a57b2a commit 3ee5534
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved image upload handling, using Laravel-native libraries
- Improved link metadata retrieval, using Laravel-native libraries

### Fixed

- Fixed HTML escaping on list and raw HTML fields. (#80 by @Harrk)

## [3.0.5]

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions resources/views/list.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="editor-js-block">
{{ ($style == 'unordered') ? '<ul>' : '<ol>' }}
{!! ($style == 'unordered') ? '<ul>' : '<ol>' !!}
@foreach ($items as $item)
<li>
{!! $item !!}
</li>
@endforeach
{{ ($style == 'unordered') ? '</ul>' : '</ol>' }}
{!! ($style == 'unordered') ? '</ul>' : '</ol>' !!}
</div>
2 changes: 1 addition & 1 deletion resources/views/raw.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ $html }}
{!! $html !!}

0 comments on commit 3ee5534

Please sign in to comment.