34
Views
3
Comments
Solved
Remove HTML Tags before downloading Excel
Application Type
Reactive
Service Studio Version
11.54.45 (Build 63140)
Platform Version
11.26.0 (Build 41987)

Hi,

I have text like below stored in DB :

<span style='line-height:1.8em;font-weight:bold;'>TestPrimeDetails</span><br />3P Primer defined as <b>'Test_Shivangi01'</b><br />5P Primer defined as <b>'Test_Shivangi02'</b><br />Is Active changed from <b>False</b> to <b>True</b><br />Primer Type defined as <b>'p0'</b>

Result after removing tags:

TestPrimeDetails
3P Primer defined as 'Test_Shivangi01'
5P Primer defined as 'Test_Shivangi02'
Is Active changed from False to True
Primer Type defined as 'p0' 

I want to remove these tags .. In UI I removed via below code :

$parameters.OutputText = document.getElementById($parameters.WidgetId).innerHTML +=  $parameters.Tags

please suggest how I can remove it while exporting data into excel.


Thanks

Shivangi


2019-03-12 12-28-20
Shivangi Thakur
Solution

Hi All,


I got the solution I used HTMLToText function from HTML utils to achieve this.


Thanks

Shivangi

2019-09-30 07-35-56
Aurelio Junior

Hello,

You can do this by using the "Regex_Replace" action to replace all text between the "<" and ">" characters with a line break. For that, you can use this regular expression: <[^>]+>

2019-03-12 12-28-20
Shivangi Thakur
Solution

Hi All,


I got the solution I used HTMLToText function from HTML utils to achieve this.


Thanks

Shivangi

2023-11-20 06-53-17
Neha Rathore

Hi Shivangi,

You can use this forge component also

https://www.outsystems.com/forge/component-overview/145/html-utils

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.