//rssHTMLFormat converts and returns plain string to html formats. func (g *gatewayCGI) rssHTMLFormat(plain, appli, path string) string { title := util.StrDecode(path) buf := g.HTMLFormat(plain, appli, title, true) if buf != "" { buf = fmt.Sprintf("<p>%s</p>", buf) } return buf }
//subjectApp makes list of records title from thread.Caches whose tag is same as one stripped from url. func (m *mchCGI) subjectApp(board string) { var boardEncoded, boardName string if board != "" { boardEncoded = util.StrDecode(board) } if boardEncoded != "" { boardName = util.FileDecode("dummy_" + boardEncoded) } subject, lastStamp := m.makeSubject(boardName) m.WR.Header().Set("Content-Type", "text/plain; charset=Shift_JIS") m.serveContent("a.txt", time.Unix(lastStamp, 0), strings.Join(subject, "\n")+"\n") }