class Article
   constructor: ->

   set_title: (@title) ->

   set_content: (@content) ->

   set_date: (@date) ->

   set_section: (@section) ->

   parse: (html) ->
      page = $(html)
      @set_title page.find("#articleContent h1").text()
      raw_content = page.find("#masterContent .ArticleContent_Inner")
      @set_content _.chain(raw_content).map(
                                            (paragraph) -> $(paragraph).find("p").removeAttr("class").prop("outerHTML")
                                             ).reduce(
                                                (memo, obj) -> memo + obj
                                             ).value()


root = exports ? this
root.Article = Article


class Article
   constructor: ->

   set_title: (@title) ->

   set_content: (@content) ->

   set_date: (@date) ->

   set_section: (@section) ->

   parse: (html) ->
      page = $(html)
      @set_title page.find("#articleContent h1").text()
      raw_content = page.find("#masterContent .ArticleContent_Inner")
      @set_content _.chain(raw_content).map(
                                            (paragraph) -> $(paragraph).removeAttr("class").prop("outerHTML")
                                             ).reduce(
                                                (memo, obj) -> memo + obj
                                             ).value()


root = exports ? this
root.Article = Article


Insert subtitle to the content
Insert subtitle to the content

Signed-off-by: Lincoln Lee <46f1a0bd5592a2f9244ca321b129902a06b53e03@lincoln.hk>
