@Override
    protected Spanned doInBackground(Void... params) {
      Spanned contentSpannable;

      if (mActivity == null || mActivity.getPost() == null) {
        return null;
      }

      Post post = mActivity.getPost();

      String postTitle = "<h1>" + post.getTitle() + "</h1>";
      String postContent = postTitle + post.getDescription() + "\n\n" + post.getMoreText();

      if (post.isLocalDraft()) {
        contentSpannable =
            WPHtml.fromHtml(
                postContent.replaceAll("\uFFFC", ""),
                mActivity,
                post,
                Math.min(mTextView.getWidth(), mTextView.getHeight()));
      } else {
        String htmlText =
            "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"webview.css\" /></head><body><div id=\"container\">%s</div></body></html>";
        htmlText = String.format(htmlText, StringUtils.addPTags(postContent));
        contentSpannable = new SpannableString(htmlText);
      }

      return contentSpannable;
    }