Where there is extra space when you paste in html page code?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
13 views
Hi all.

Such a situation: write a module for Bitrix(similar to a plugin on wordpress) and was faced with a strange situation

a screenshot of the source code on wordpress: joxi.ru/VrwM1nxsOeoQv2
the arrow shows where is the problem.

a screenshot of the source code on Bitriks: joxi.ru/EA46E1YfwEXzMm
and there was a gap...why????

this html code is generated on the server, loaded via ajax and inserted into the page and everything.
But for some reason on wordpress it is normal inserts and that Bitrix adds such a gap...

Anybody know how it turns out?

Code is generated on the server with no spaces, blank appears after the $("#container").html(ajax.html) in Bitrix
joxi.ru/82QqyMXTjx8Jq2

Thank you!
by | 13 views

2 Answers

0 like 0 dislike
problem solved, was missing htmlspecialchars()
by
0 like 0 dislike
You have something like this: and inside the tag is a piece of garbage instead of arguments: format":"dd-mm-yy

As for the screenshots - minus in a karma.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users