change views hook to use alter
Revert "revert CRM-11304 This patch has caused WSOD"

This reverts commit f5dae5fd7078a9af53582ea961a7fa7a9b10c4fd.
CRM-11304 reworked fix on Html purifier WSOD