- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 05:30 AM
I am trying to remove white space from signature in emails. In this I found that the HTML field that I use are automatically adding an extra line of HTML code:
<p > </p >
What I try to do is to add a business rule to remove this line as the user record with this HTML field is saved. But I can´t even find out how to add the escape characters correctly to point at that line.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 05:57 AM
Are you fetching the HTML Value or String Value?
You can try this once
var text = current.u_text.getHTMLValue();
text = text.replace("<p > </p >","");
current.u_text = text;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 05:47 AM
You can use .replace("<p > </p >", "");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 05:57 AM
Are you fetching the HTML Value or String Value?
You can try this once
var text = current.u_text.getHTMLValue();
text = text.replace("<p > </p >","");
current.u_text = text;