Covert the String value to HTML value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2021 05:48 AM
Hi How to convert the String value to HTML value. We are in a need of bringing the description to Service portal widget. Even though the string type of description field has got line break, when the time of it is showed on service portal all the text are displayed in same line without line break.
How could it be sorted out
Labels:
- Labels:
-
Scripting and Coding
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 10:14 AM
We can use replace.
stringField.replace("\n","<br>");