clean
add html header and footer for post html file
format code
make it easier to test external post file
fix bug of replaceHtmlEntities