开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜