wxHyperTextWindow::GetSpanText

void GetSpanText(char *buffer, int maxSize, int line1, int char1, int line2, int char2, Bool convertNewLinesToSpaces = FALSE)

Gets the plain text bounded by two line/character positions, stripping out any block codes. The final parameter allows the user to get text in a form that can be matched against a string with no newlines; the newlines are converted to spaces. If this is FALSE, a ASCII code 10 will be inserted for each newline.