diff --git a/lib/repair_html.rb b/lib/repair_html.rb index 87222b809..a16963e98 100644 --- a/lib/repair_html.rb +++ b/lib/repair_html.rb @@ -49,3 +49,16 @@ def repair_html( html, debug=false ) depth.downto(0).each { |x| res<<= %{#{parents[x]}>} } res end + +def showArticle( article, language ) + if /]*>/ =~ article.compiled_content + image=$& + else + image=%{} + end + presentation=%{} + %{
-fr: <%= link_to(%{en lire plus »}, a) %> -en: <%= link_to(%{Read more »}, a) %> -
-