I have a sidebar populated with elements with more than one token (eg. “John Doe”, “Jane Doe” etc..). They’ve been set to link to an anchor further down the page and as it is all dynamic, I felt the easiest method was to set href=”#{title}” and name (or id) to “{title}”. These would evaluate to John Doe and so on.
This works fine. However, it does not validate under strict XHTML 1.0 as name/id only permit single tokens. Thus, my solution is to remove all the spaces and turn each part into a single token (eg “#JohnDoe”).
I thought using Find and replace plugin would work with the syntax:
<h3 id="{exp:replace find=“SPACE”}{title}{/exp:replace}"></h3>(It specifies leaving out the second argument will replace “SPACE” by nothing)
However, it doesn’t seem to do anything at all..
Any ideas?
Cheers, George