ACF text field with single quote in it breaks when passed as an echo tag argument

Bricks v2-1-3 (can’t find a tag for it)

When I pass my ACF text field as an argument in an echo tag, I have the problem of the string breaking if there is a single quote in it.

Example echo tag: {echo:my_text_function(‘{acf_text_field}’)}
Example string: Everyone’s Going This Weekend

What the php function ends up with just “Everyone”, breaking at the first single quote. If I pass {post_title} instead with a quote in it, that works fine, so it’s specific to when I pass an ACF text field.

If I wrap the argument in double quotes, that doesn’t work at all (would be a good solution).

If I don’t wrap it at all, then the string ends up with missing spaces (is that expected behaviour?)

I need a way to pass ACF text values as arguments while preserving their single quote content.

Thanks