Fix for iOS6
Escape attributes