Sanitizing HTML input

You will have to decide between good and lightweight. The recommended choice is ‘HTMLPurifier’, because it provide no-fuss secure defaults. As faster alternative it is often advised to use ‘htmLawed‘.

See also this quite objective overview from the HTMLPurifier author: http://htmlpurifier.org/comparison

Leave a Comment