EE 2.9.2, Structure 3.3.17 In running a conditional to compare a page title and it's Structure parent, the conditional returns false if there is "&" or any other punctuation in the string.
{if title == "{structure:top:title}}
do something
{/if}
Simple enough?
This works great if there is no punctuation or other special characters in either.
i. e. if the title is "Administration & Finance" the conditional fails. If it is "Administration and Finance", it returns true.
Placing &
in the title works, but then other Structure tags ( breadcrumbs ) print it out verbose ( I get Administration & Finance ) . Plus I can't expect editors to remember to put code in the title.
Any ideas?