Encode HTML entities for inline forwards in text

Fixes #2411