Skip to content

Commit bcab5e3

Browse files
authored
Decode HTML entities in fix_notes field
1 parent 7c434d0 commit bcab5e3

File tree

1 file changed

+1
-0
lines changed
  • Server-Side Components/Server Side/Remove HTML Tags

1 file changed

+1
-0
lines changed

Server-Side Components/Server Side/Remove HTML Tags/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//Create a new string field called 'Fix Notes(u_fix_notes)' in the problem table.
22
//Select the 'calculated' checkbox in the field dictionary, and add the code to the script section.
3+
//This would be helpful if you want to export HTML fields in a report.
34
(function calculatedFieldValue(current) {
45
var htmlText = current.fix_notes; // Getting the value of the current fix notes (HTML field)
56
var decodedText = htmlText.replace(/&#(\d+);/g, function(match, dec) {

0 commit comments

Comments
 (0)