开发者

Wordpress theme starts every HTML TAG inside jQuery in a new line and creates an "unterminated string constant" error

开发者 https://www.devze.com 2023-03-31 11:11 出处:网络
My Wordpress theme starts every HTML TAG inside jQuery in a new line and creates an \"unterminated string constant\" error that stops the functionality of the site.

My Wordpress theme starts every HTML TAG inside jQuery in a new line and creates an "unterminated string constant" error that stops the functionality of the site.

for example I have a line that looks like thi开发者_开发技巧s:

$('
<div class="em-booking-message-success em-booking-message">'+ ...

Using other themes everything is on one line and it works..

$('<div class="em-booking-message-success em-booking-message">'+ ...

What could be causing this error in java script?

I looks like a filter that adds a carriage return before every HTML TAG.

0

精彩评论

暂无评论...
验证码 换一张
取 消