From f87697e22f289cc96fc4e79da81575115b3e89a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 8 Feb 2020 16:41:06 +0100 Subject: added messaging --- js/messaging.js | 303 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 303 insertions(+) create mode 100644 js/messaging.js (limited to 'js/messaging.js') diff --git a/js/messaging.js b/js/messaging.js new file mode 100644 index 0000000..250bf62 --- /dev/null +++ b/js/messaging.js @@ -0,0 +1,303 @@ +function htmlEncode(value){ + // Create a in-memory element, set its inner text (which is automatically encoded) + // Then grab the encoded contents back out. The element never exists on the DOM. + return $('