Use htmlspecialchars instead of htmlentities. The latter messes with
certain character encodings leading to messed up strings that should
contain accents etc.
Use htmlspecialchars instead of htmlentities. The latter messes with
    certain character encodings leading to messed up strings that should
    contain accents etc.