I am trying to replace spaces with hyphens using the replace tag. For example. the content might be "Joe Smith" and I want to output "Joe-Smith". Here's my code
<perch:content id="staff_last_name" type="text" label="Staff Last Name" replace=" |-">
but the tag as constructed here is ignored. I've verified that Replace is otherwise working by replacing other alpha characters in the string.
Any thoughts on how to coax Replace into working with a space between characters?