Always escape special characters…
I came across this report of a bug with iOS Messages voice transcription feature and found it to be rather interesting. Cutting to the chase: Messages will silently fail if voice transcription tries to use an ampersand (“&”) as part of a proper name.
The example that started the investigation was a message containing “Dave and Busters”. This is the name of a U.S. restaurant chain with the proper name “Dave & Busters”. The Apple transcription feature smartly applies the correct trademark name using the ampersand, but Messages silently rejects the message containing the “&” as invalid XHTML.
Oh dear, Apple: that is embarrassing. But also all-so-human.
(more…)