I'm trying to use vues v-html in a blade foreach loop:
@foreach($entries as $entry)
<a href="/entry/{{$entry->id}}"><h3>{{ $entry->created_at->toRfc822String() }}</h3></a>
<div v-html="<p>hello world</p>">
</div>
<hr>
@endforeach
When I do that I get this error:
[Vue warn]: Error compiling template:
invalid expression: Unexpected token '<' in
<p>hello world</p>Raw expression: v-html="
hello world
"
The reason I want to use v-html is because I intend to use a method to output markdown like <div v-html="marked({{$entry-content}})">
<div v-html="'<p>hello world</p>'"></div><div v-html="marked({{$entry->content}})">to work properly?