diff --git a/DESCRIPTION b/DESCRIPTION index 2b9e56b..d254a0e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: requal Title: Shiny Application for Computer-Assisted Qualitative Data Analysis -Version: 1.1.2.9001 +Version: 1.1.2.9002 Authors@R: c( person(given = "Radim", diff --git a/R/mod_document_code_utils_document_code.R b/R/mod_document_code_utils_document_code.R index 80be404..d017604 100644 --- a/R/mod_document_code_utils_document_code.R +++ b/R/mod_document_code_utils_document_code.R @@ -315,7 +315,7 @@ load_doc_to_display <- function(pool, blend_colors, code_names) ) - + content_df <- coded_segments %>% dplyr::filter(segment_start <= segment_end) %>% # patch for failing calculate_code_overlap() function in case of identical code positions dplyr::mutate(code_id = as.character(code_id)) %>% @@ -363,11 +363,11 @@ load_doc_to_display <- function(pool, content_df$position_end, content_df$tag), ~paste0(..3, - substr( + htmltools::htmlEscape(substr( raw_text, ..1, - ..2))), + ..2)))), collapse = "") %>% stringr::str_replace_all("[\\n\\r]", "\\​

") @@ -379,7 +379,7 @@ load_doc_to_display <- function(pool, df_non_coded <- paste0( "

", - raw_text %>% + htmltools::htmlEscape(raw_text) %>% stringr::str_replace_all("[\\n\\r]", "\\​

"), diff --git a/inst/app/www/favicon.ico b/inst/app/www/favicon.ico new file mode 100644 index 0000000..1c6f500 Binary files /dev/null and b/inst/app/www/favicon.ico differ diff --git a/tests/test_basic.requal b/tests/test_basic.requal index 61b9ab5..476307c 100644 Binary files a/tests/test_basic.requal and b/tests/test_basic.requal differ