Skip to content

Commit

Permalink
Fixed #271: MDict: A mechanism to clean-up invalid HTML cards
Browse files Browse the repository at this point in the history
Thanks to Abs62 for the hint :)
  • Loading branch information
Tvangeste committed Apr 25, 2013
1 parent bc65ccd commit 56a5308
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mdx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,12 @@ void MdxArticleRequest::run()
continue;
}

articleText += "<div class=\"mdict\">" + articleBody + "</div>\n";
// See Issue #271: A mechanism to clean-up invalid HTML cards.
string cleaner = "</font>""</font>""</font>""</font>""</font>""</font>"
"</font>""</font>""</font>""</font>""</font>""</font>"
"</b></b></b></b></b></b></b></b>"
"</i></i></i></i></i></i></i></i>";
articleText += "<div class=\"mdict\">" + articleBody + cleaner + "</div>\n";
hasAnyData = true;
}

Expand Down

0 comments on commit 56a5308

Please sign in to comment.