SOLVED: Echo function changes original value?

I have an acf field that holds Cities {acf_city}

Example “Prince Edward”

{acf_city} in bricksbuilder will output “Prince Edward”

I made a simple echo function.

{echo:simplify_acf_value({acf_city})}

function simplify_acf_value( $value ) {   
    return $value;
}

OUTPUTS: “PrinceEdward” — WHY is it removing the space?

Can you please try {echo:simplify_acf_value(‘{acf_city}’)}

THANK YOU, that works should perhaps be mentioned in the docs. Was very confusing.

1 Like