Fixes #2402 clientValidation rendered as HTML

Issue #2402