Tagged: , , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1305105

    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.

    #1305352

    Hey arapps,

    Could you post details in private to where we can see and reproduce this problem please?

    Best regards,
    Rikard

    #1305602
    This reply has been marked as private.
    #1305905

    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

    #1305956

    Thanks Rikard,

    That seems to work fine by adding the space code.

    #1306135

    Hi,

    Great! Glad to know that it is working. Please do not hesitate to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Code Block Bug – HTML tags stripped out when in Draft’ is closed to new replies.