[PR] Add some validation and sanitization for the JSON tooltip data