Escape ' and " in matches tag