strict html validation filtering php
i'm looking best practices behaving despotic (whitelist) validation/filtering user-submitted html.
main purpose filter out xss identical nasties competence entered around web forms. nominee purpose border eventuality html calm entered non-technical users e.g. around wysiwyg editor an html view.
i'm deliberation controlling , rolling possess controlling an html dom parser by slight html(dirty)->dom(dirty)->filter->dom(clean)->html(clean).
can news successes any easier strategies also effective? any pitfalls watch out for?
Comments
Post a Comment