Added small tag to allowed tags and fixed a bug where html entities were escaped after piping to beautiful soup to strip tags