From e9d8c7f470993dcb05337ef97bacecd67a7d7eb1 Mon Sep 17 00:00:00 2001
From: HackoDev1530 <92592691+HackoDev1530@users.noreply.github.com>
Date: Wed, 15 Oct 2025 15:31:59 -0500
Subject: [PATCH 1/5] Add README for removing HTML tags in list view
Document the purpose of removing HTML tags from fields.
---
Server-Side Components/Server Side/Remove HTML Tags/README.md | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 Server-Side Components/Server Side/Remove HTML Tags/README.md
diff --git a/Server-Side Components/Server Side/Remove HTML Tags/README.md b/Server-Side Components/Server Side/Remove HTML Tags/README.md
new file mode 100644
index 0000000000..fa231bf62f
--- /dev/null
+++ b/Server-Side Components/Server Side/Remove HTML Tags/README.md
@@ -0,0 +1,2 @@
+Removing the HTML tags from the HTML fields in the list view.
+For example, the 'Fix Notes' field in the problem table is an HTML field and displays with all the HTML tags in the list view.
From 11da3e9ec24de866e1fb4fff56d6690e412e597d Mon Sep 17 00:00:00 2001
From: HackoDev1530 <92592691+HackoDev1530@users.noreply.github.com>
Date: Wed, 15 Oct 2025 15:37:17 -0500
Subject: [PATCH 2/5] Implement HTML tag removal and decoding in script.js
Add a script to decode HTML entities and remove HTML tags from the 'fix_notes' field.
---
.../Server Side/Remove HTML Tags/script.js | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 Server-Side Components/Server Side/Remove HTML Tags/script.js
diff --git a/Server-Side Components/Server Side/Remove HTML Tags/script.js b/Server-Side Components/Server Side/Remove HTML Tags/script.js
new file mode 100644
index 0000000000..6ecafe7c10
--- /dev/null
+++ b/Server-Side Components/Server Side/Remove HTML Tags/script.js
@@ -0,0 +1,11 @@
+//Create a new string field called 'Fix Notes(u_fix_notes)' in the problem table.
+//Select the 'calculated' checkbox in the field dictionary, and add the code to the script section.
+(function calculatedFieldValue(current) {
+ var htmlText = current.fix_notes; // Getting the value of the current fix notes (HTML field)
+ var decodedText = htmlText.replace(/(\d+);/g, function(match, dec) {
+ return String.fromCharCode(dec);
+ }).replace(/<[^>]*>/g, '').replace(/&/g, '&').replace(/</g, '<')
+ .replace(/>/g, '>').trim();
+ return decodedText;
+})(current);
+
From c7020e40e9147d95309db431b305fc8a8725cbde Mon Sep 17 00:00:00 2001
From: HackoDev1530 <92592691+HackoDev1530@users.noreply.github.com>
Date: Wed, 15 Oct 2025 15:37:47 -0500
Subject: [PATCH 3/5] Update README with example image for HTML tag removal
Added an example image to illustrate the removal of HTML tags.
---
Server-Side Components/Server Side/Remove HTML Tags/README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Server-Side Components/Server Side/Remove HTML Tags/README.md b/Server-Side Components/Server Side/Remove HTML Tags/README.md
index fa231bf62f..8e61be46aa 100644
--- a/Server-Side Components/Server Side/Remove HTML Tags/README.md
+++ b/Server-Side Components/Server Side/Remove HTML Tags/README.md
@@ -1,2 +1,4 @@
Removing the HTML tags from the HTML fields in the list view.
For example, the 'Fix Notes' field in the problem table is an HTML field and displays with all the HTML tags in the list view.
+
+
From 7c434d038daf359cb942b3f47afd8a173b321649 Mon Sep 17 00:00:00 2001
From: HackoDev1530 <92592691+HackoDev1530@users.noreply.github.com>
Date: Wed, 15 Oct 2025 15:38:43 -0500
Subject: [PATCH 4/5] Update README with screenshot for HTML tag removal
Added a screenshot to illustrate the removal of HTML tags.
---
Server-Side Components/Server Side/Remove HTML Tags/README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/Server-Side Components/Server Side/Remove HTML Tags/README.md b/Server-Side Components/Server Side/Remove HTML Tags/README.md
index 8e61be46aa..75f13e4e25 100644
--- a/Server-Side Components/Server Side/Remove HTML Tags/README.md
+++ b/Server-Side Components/Server Side/Remove HTML Tags/README.md
@@ -1,4 +1,5 @@
Removing the HTML tags from the HTML fields in the list view.
For example, the 'Fix Notes' field in the problem table is an HTML field and displays with all the HTML tags in the list view.
+The screenshot below shows a difference in the list view.
From bcab5e34ec66c5c3642971af3e3436d376ec0aa7 Mon Sep 17 00:00:00 2001
From: HackoDev1530 <92592691+HackoDev1530@users.noreply.github.com>
Date: Wed, 15 Oct 2025 15:39:41 -0500
Subject: [PATCH 5/5] Decode HTML entities in fix_notes field
---
Server-Side Components/Server Side/Remove HTML Tags/script.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/Server-Side Components/Server Side/Remove HTML Tags/script.js b/Server-Side Components/Server Side/Remove HTML Tags/script.js
index 6ecafe7c10..6b54ed7841 100644
--- a/Server-Side Components/Server Side/Remove HTML Tags/script.js
+++ b/Server-Side Components/Server Side/Remove HTML Tags/script.js
@@ -1,5 +1,6 @@
//Create a new string field called 'Fix Notes(u_fix_notes)' in the problem table.
//Select the 'calculated' checkbox in the field dictionary, and add the code to the script section.
+//This would be helpful if you want to export HTML fields in a report.
(function calculatedFieldValue(current) {
var htmlText = current.fix_notes; // Getting the value of the current fix notes (HTML field)
var decodedText = htmlText.replace(/(\d+);/g, function(match, dec) {