Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JeanLoriston opened this issue Jan 8, 2024 · 0 comments

Comments

@JeanLoriston
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant