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.
精彩评论