Deadlock graph: Show SQL statement containing the phrase "password"
No, there is no trace flag or way to override this behavior.

If any statement has a restricted word in it, it will be overwritten with "-------" or "** restricted **". This is the same whether it is a trace, in cache, or using XEvents.