Skip to content

Commit

Permalink
Avoids HTML escaping.
Browse files Browse the repository at this point in the history
  • Loading branch information
sundarcf authored and tfmorris committed Mar 1, 2016
1 parent b1e4a82 commit 858f4b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1732,13 +1732,13 @@ char* TessBaseAPI::GetHOCRTSVText(int page_number) {
hocr_str += "\t";
do {
const char *grapheme = res_it->GetUTF8Text(RIL_SYMBOL);
if (grapheme && grapheme[0] != 0) {
if (grapheme[1] == 0) {
hocr_str += HOcrEscape(grapheme);
} else {
// if (grapheme && grapheme[0] != 0) {
// if (grapheme[1] == 0) {
// hocr_str += HOcrEscape(grapheme);
// } else {
hocr_str += grapheme;
}
}
// }
// }
delete []grapheme;
res_it->Next(RIL_SYMBOL);
} while (!res_it->Empty(RIL_BLOCK) && !res_it->IsAtBeginningOf(RIL_WORD));
Expand Down

0 comments on commit 858f4b7

Please sign in to comment.