Use whitelist and core translate method to handle inline translation