Skip to content

Commit 858f4b7

Browse files
sundarcftfmorris
authored andcommitted
Avoids HTML escaping.
1 parent b1e4a82 commit 858f4b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/baseapi.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1732,13 +1732,13 @@ char* TessBaseAPI::GetHOCRTSVText(int page_number) {
17321732
hocr_str += "\t";
17331733
do {
17341734
const char *grapheme = res_it->GetUTF8Text(RIL_SYMBOL);
1735-
if (grapheme && grapheme[0] != 0) {
1736-
if (grapheme[1] == 0) {
1737-
hocr_str += HOcrEscape(grapheme);
1738-
} else {
1735+
// if (grapheme && grapheme[0] != 0) {
1736+
// if (grapheme[1] == 0) {
1737+
// hocr_str += HOcrEscape(grapheme);
1738+
// } else {
17391739
hocr_str += grapheme;
1740-
}
1741-
}
1740+
// }
1741+
// }
17421742
delete []grapheme;
17431743
res_it->Next(RIL_SYMBOL);
17441744
} while (!res_it->Empty(RIL_BLOCK) && !res_it->IsAtBeginningOf(RIL_WORD));

0 commit comments

Comments
 (0)