0
如何讓vue.js完全忽略HTML塊?現在它正試圖解析什麼是在textarea的當我需要它被忽略:Vue.js忽略textarea中的html
<textarea class="form-control" required="true" name="template_code" cols="50" rows="10"><div style="width:300px;margin:0;padding:0;font-family:sans-serif;">
<a href="{!! $dealer->url !!}" style="line-height:0;" target="_blank">
<img src="{!! url('/') !!}/image_assets/dads/{{$ad->id}}/Top Image?time=<?php echo md5($ad->updated_at); ?>" style="margin:0;padding:0;display:block;max-width:100%;">
</a>
<div class="inventory-listings" style="background:#{{ $ad->custom_settings['Border Color'] }};padding:2px;height:246px;">
<div class="inventory-inner" style="background:#ffffff;padding:6px;">
<p style="font-size:10px;letter-spacing:1px;text-transform:uppercase;text-align:center;margin:6px 0;">Featured
Inventory</p>
@foreach ($items as $item)
<div style="margin:1px 0;padding: 3px 0;border-top:1px solid #{{ $ad->custom_settings['Divider Color'] }};">
<a href="{!! $item['url'] !!}"
style="display:block;text-decoration:none;overflow:auto;color:#{{ $ad->custom_settings['Link Item Color'] }};" target="_blank">
<div class="img-holder" style="width: 20%;">
<img src="{!! action('[email protected]', ['id' => $item['image_id']]) !!}/"
style="margin:0;padding:0;display:block;float:left;margin-right:8px;max-width:100%;border-radius:4px;">
</div>
<p style="margin: 4px 0 0 0;font-size:14px;">{!! $item['year'] !!} {!! $item['make_name'] !!} {!! $item['model_name'] !!}
</p>
</a>
</div>
@endforeach
</div>
</div>
<a href="{!! $dealer->url !!}" style="line-height:0;" target="_blank">
<img src="{!! url('/') !!}/image_assets/dads/{{$ad->id}}/Bottom Image?time=<?php echo md5($ad->updated_at); ?>" style="margin:0;padding:0;display:block;max-width:100%;">
</a>
</div>
</textarea>
你得到什麼具體錯誤? – ceejayoz