How to echo script in php

后端 未结 6 1112
再見小時候
再見小時候 2021-01-20 04:11

I am using the shortcode execute plugin in wordpress.

This simply allows me to write shortcode like this [email_spamproof]

But I am trying to echo a script.

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-20 04:25

    You could write " in your javasript code, and then only use single quotes(') in your php echo.

    A more suitable method is to use escape characters in your javascript code "\'" (without the double quotes)

提交回复
热议问题