easy-code-manager
easy-code-manager copied to clipboard
Error when I use an html snippet that have template tags in PHP + HTML
I built a form using Vue.js from the cdn script I wanted to put the HTML using the plugin but it throws the error below. I think because PHP + HTML is combined it is erroring out when I have code like the code below. How can I only paste html snippets so the snippet doesn't try to look for any php syntax?
<div
v-if="showMessage"
class="alert alert-warning alert-white rounded"
>
<div class="icon">
<i class="fa fa-warning"></i>
<i class="fa fa-info-circle"></i>
</div>
<strong>{{alertMessage}}</strong>
</div>
Parse error: syntax error, unexpected 'version' (T_STRING) in /public_html/wp-content/fluent-snippet-storage/6-form-html.php on line 221
Fatal error: Exception thrown without a stack frame in Unknown on line 0