We are using AEM 6.4 SP7
I have a Text component , when author enters data using inline editor.
If data contains some special characters I want to prevent saving data to "crx" .
So I thought of go with listeners approach.

Once author click on save(check symbol) how to take listener control.
Can anyone please give some idea how to achieve this?