- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 03:56 PM
Hello Beautiful People,
I wrote a code in UI Page using Jelly Script, I have run the code, and it works but having issues. The <p> tag and </p> keeps getting inserted in the beginning and end of my text. Please find the below script which I wrote. Need help with removing those tags. What am I doing wrong with the script, I just need to pull the text entered in the field to display without the tags
Thank you very much as this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 05:29 PM
Hi @Cynthia19,
Try adding the below code in line 19 of the HTML section:
field_value = field_value.replace(/<(\/?)p>/g, '');
This should remove all the tags, but note that this may break the format depending on the HTML content.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 05:29 PM
Hi @Cynthia19,
Try adding the below code in line 19 of the HTML section:
field_value = field_value.replace(/<(\/?)p>/g, '');
This should remove all the tags, but note that this may break the format depending on the HTML content.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 05:41 PM
You are a blessing sir I thank you so much for your help as I have been struggling with this.