Nine
(Simon)
March 31, 2019, 3:38pm
1
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?
avivtech
(Aviv Shwartz)
March 31, 2019, 5:11pm
2
Hey @Nine ,
Maybe try using the html entity:  
?
Nine
(Simon)
April 1, 2019, 4:07pm
3
Unfortunately not. The entity is displayed as  
and not converted to a space
avivtech
(Aviv Shwartz)
April 1, 2019, 4:15pm
4
can you share a read-only link?
Nine
(Simon)
April 1, 2019, 4:28pm
5
avivtech
(Aviv Shwartz)
April 1, 2019, 5:06pm
6
Can you try Shift + Space
Nine
(Simon)
April 2, 2019, 8:36am
7
Shift + Space does not help
Nine
(Simon)
April 2, 2019, 8:44am
8
I can of course replace the “input” with an “HTML embed” – but that’s just a workaround and not webflow like
avivtech
(Aviv Shwartz)
April 2, 2019, 8:57am
9
That’s a bummer
maybe @QA_Brandon or @PixelGeek will have a solution?
Try this (set by JS)
copy-paste before body
<script>
$('#Agenda-Zeit').attr("data-sanitize-insert-right", " Uhr");
</script>
Should work fine (The change happens after the page loads).
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
1 Like
system
(system)
Closed
June 2, 2019, 7:05am
11
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.