Campaign custom tags cleaned source code bug?

Ludovic

Member
Hey there,

I'm looking to create a custom campaign tag to add a signature to my emails (but maybe it's not made for that?). So I have a code that I paste with inline CSS and in particular displays in order to arrange the different parts.

Here my original code:

HTML:
<div style="font-family: Arial; font-size: 12px; color: #000000; display: flex; flex-direction: column; align-items: flex-start; width: fit-content;">
    <div style="text-align: left;">
        <strong>How do you rate my assistance?</strong>
    </div>
    <div style="display: flex; justify-content: center; width: 100%; margin-top: 8px;">
        <a href="https://app.xxxxxxx.io/org303840/submitsurvey/agent5478/Dissatisfied?surveyAnswerId=xxxx" id="Dissatisfied-xxxx" style="text-decoration: none;">
            <img alt="BAD" src="https://xxxxxxx.blob.core.windows.net/static/default/Group%2023-3.png" style="width: 50px;">
        </a>
        <a href="https://app.xxxxxxx.io/org303840/submitsurvey/agent5478/ExceededExpectations?surveyAnswerId=xxxx" id="ExceededExpectations-xxxx" style="text-decoration: none; margin-left: 3em;">
            <img alt="GREAT" src="https://xxxxxxx.blob.core.windows.net/static/default/Group%2023-1.png" style="width: 50px;">
        </a>
    </div>
</div>

I go through Source mode, I paste my code, I come back in Text version, everything is ok, I save, I reload the page then I go back to see my Source code and I realize that my code has been cleaned, is this normal?Screen Shot 2023-05-07 at 21.43.11.jpg

Thank you for your help,
Warm regards,
Ludovic
 
@Ludovic - I think this one is on us, there are some attributes there which are not known to html purifier, which is our security filter, and it removes them. We're working to have this fixed asap.
 
Back
Top