It seems only to recognize & and no other entities: echo "%@htmldecode[foo & bar]" "foo & bar" echo "%@htmldecode[foo > bar]" "foo > bar" Anyone else work around this problem?