Streaming live at 10am (PST)

Custom attribute with leading space

I’m using the jQuery plugin Form Validator. For that an input has a custom attribute:

Name: data-sanitize-insert-right
Value:  Uhr – see the leading whitespace here!

On publishing the site, webflow trims the leading whitespace and it becomes to <input … data-sanitize-insert-right=“Uhr”> instead of <input … data-sanitize-insert-right=" Uhr">.

Is there any way to prevent webflow doing this?

Hey @Nine,

Maybe try using the html entity: &#32; ?

Unfortunately not. The entity is displayed as &#32; and not converted to a space :frowning:

can you share a read-only link? > page “Event erfassen” | input #Agenda-Zeit

Can you try Shift + Space

Shift + Space does not help :frowning:

I can of course replace the “input” with an “HTML embed” – but that’s just a workaround and not webflow like :wink:

That’s a bummer :frowning_face:
maybe @WebDev_Brandon or @PixelGeek will have a solution?

Try this (set by JS)

copy-paste before body

   $('#Agenda-Zeit').attr("data-sanitize-insert-right", " Uhr");

Should work fine (The change happens after the page loads).

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.