I found a work around. I created another field that was hidden, then used javascript to grab the value of the company field off focus. It then removes the space and adds the + then puts it in the hidden field.
I then use the personalization token of the hidden field in my email because it already was sent with + in there.
Is there something specific I should be look for? I just did a quick scan of it and I cant seem to find anything that will be able to run something like a regex to replace a space with a +.
@pmanca yes that seems to work, i got that working as well, i can not get it to work with {{contact.company}} the personalization token wont take the replace.
i tried to set contact.company as a new variable and trying it on that too but if i do
{% set companyName = {{contact.company}} %}
i get an error because it thinks im trying to create an array.
@iamcenz you are actually correct. My apologies. I did some more testing on my end and then confirmed with my manager @zwolfson that in the email took the personalization tokens are loaded after the hubl logic is executed so you cannot modify a personalization token as you mentioned.