like_escape is a special function that handles making some of the database queries safe. In SQL, The "LIKE" keyword has special rules and so it needs special handling. If the handling isn't done totally properly, there's potential security implications.

Problem is that the documentation and spec isn't totally clear, so correctly implementing it means doing lots of tests and figuring out the rules.