code: function getTitle(content, tag) {
    if (!content) {
      return;
    }
    var ts = content.indexOf(tag);
    if (ts < 0) {
      return;
    }
    var te = content.indexOf('>', ts);
    var cs = content.indexOf('<', te + 1);
    var title = content.substring(te + 1, cs);
    return title.trim();
  }
docs: Get an HTML title the old-fashioned way.