You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
I have some issue about
nuxt.config.js
write head.script
I need write some code in head script , like define a object .
so I find how to setting on vue-meta ( use innerHTML )
https://github.com/declandewet/vue-meta#script-object
in my html , I got my code like it escape html .
maybe for some security reason .
but , I can't find some information can disable it .
( vue-meta just use single quote in innerHTML )
Would someone know this and give me a reference , thanks.
head script InnerHTML encode like html escape
head script InnerHTML encoded like html escape
Mar 26, 2017
Hi
@ausir0726
,
Have you tried to do it with an
app.html
document?
It could be cleaner to use it in this case instead of vue-meta.
Nuxt.js Documentation
@alexchopin
I think modify app.html will be work .
but I just don't want modify template .
because vue-meta already provide innerHTML attribute .
It just escaped html , now . ( but vue-meta doesn't )
just want find some way to resolve this escape situation .
and I will try write template at same time .
I tried write template app.html file
it works.
but if possible let me know how to write innerHTML in
nuxt.config.js
without escape .
because it only can write before
{{ HEAD }}
or after ,
I don't want that script at first inside
<head></head>
, but it can't be after then
{{ HEAD }}
thanks !
sorry
@alexchopin
waste for your time .
I also find the answer after your response
Where should I put the inline script? #226
add this reference for some one landing this page .