easy-code-manager icon indicating copy to clipboard operation
easy-code-manager copied to clipboard

Error when I use an html snippet that have template tags in PHP + HTML

Open JeanLoriston opened this issue 1 year ago • 0 comments

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

JeanLoriston avatar Jan 08 '24 19:01 JeanLoriston