Changed User View and Ticket View
This commit is contained in:
1 parent
3d9f4dfda0
commit
cf8b470a20
6 files changed
+43
-17
No files matched your search
@@ -55,7 +55,7 @@ export function escapeHtml(str) {
|
||||
export function linkify(text) {
|
||||
const escaped = escapeHtml(text);
|
||||
const urlPattern = /(\bhttps?:\/\/[^\s<]+)/g;
|
||||
return escaped.replace(urlPattern, '<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>');
|
||||
return escaped.replace(urlPattern, '<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>').replace(/\n/g, '<br>');
|
||||
}
|
||||
|
||||
export function formatDateTime(date) {
|
||||
|
||||
Reference in new issue
Block a user