Change allowed tags in document preview