Tagged: bug, code, Code block, draft
So this is a weird bug. It took me a while to work out why it was happening. Turns out it happens on draft pages but working fine on published pages.
I’m using the Code Block element and had a line: <div class="service-toggle"><i class="fal fa-chevron-down"></i></div>
. On the published page, this was outputting fine. On a duplicate version of the same page, which was still in Draft, it was only outputting: <div class="service-toggle"></div>
.
If I added another tag inside “service-toggle” e.g. <div class="service-toggle"><i class="fal fa-chevron-down"></i><span>test</span></div>
, it would display the icon and the word ‘test’, however, the <span>
and </span>
had been stripped out: <div class="service-toggle"><i class="fal fa-chevron-down"></i>test</div>
.
Only when I publish the page, all the tags are outputted as they should.
Hey arapps,
Could you post details in private to where we can see and reproduce this problem please?
Best regards,
Rikard
Hi,
Thanks for that. I see the same thing on my end as well, but it does seem to work as expected if I put non break space code in your markup (just remove the spaces):
<div class="service-toggle"><i class="fal fa-chevron-down">& n b s p ;</i></div>
Could you try that out please?
Best regards,
Rikard
Thanks Rikard,
That seems to work fine by adding the space code.