I am facing an issue when using tags right after eachother(ex: span
, 'a' and 'p').
characters merge with each other, although they are in seperate html tags!
How can I prevent that from happing?
<a href="" class="underline mx-1">حریم شخصی</a>
<a href="">استفاده</a>
<span>حریم</span>
<span>استفاده</span>
<span>حریم</span>
Codepen: https://codepen.io/blackcrowxyz/pen/jOZOZoR
What I want:(استفاده حریم is right)
What I get:(استفادهحریم is wrong)
sample output:
The solution is to use
because every character in between tags, will prevent the issue from happening.
<span>قوانین و شرایط استفاده</span>
<span>حریم شخصی</span>
result: