Add HTML entity decoding.
Encode/decode action messages.
Remove the trailing </i> too.