I completely changed findURLs function, but it seems to be used only in processText, so I considered it would be ok.
Now in processText findURLs splits text into chunks, then formats even (text) chunks with xv_utils.escapeHTML and odd (link) chunks with xv_utils.formatURL, which formats anchor and escapes text too.
I completely changed findURLs function, but it seems to be used only in processText, so I considered it would be ok.
Now in processText findURLs splits text into chunks, then formats even (text) chunks with xv_utils.escapeHTML and odd (link) chunks with xv_utils.formatURL, which formats anchor and escapes text too.