add html encoding to raw db input