Detect parsing method from while list

The white list could prectect us from injection attacking.

@lepture Please review it. Thanks.