Tüm potentially dangerous elements or bogus html tag (such as bad links)
HTML kaynağından kaldırmak zorunda PHP sınıf yazıyorum.
Usually I would use HTML Purifier library
or similar library,
but self-written code is required in this project.
Iki koşul vardır:
- Bu 3KB kod daha var olamaz
- gerçekten hızlı çalıştırmak gerekir
I wrote something that could do the job: http://pihost.pl/purify.php
but i do not know if it is safe enough to use
My question is:
Is there any way to test it properly?
Or maybe someone has quick, small and tested library like this?