added allow tags

this is similar to strip_tags of php