function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rohit Thakur 19Rohit Thakur 19 

How Remove HTML tags between {{ & }} space CSS etc.

Hi,
How remove HTML tags between {{ & }} space CSS etc.

Currunt String 
font-style:normal">Opportunity description: {{Opportunity_description &nbsp; &nbsp; &nbsp; &nbsp; }}</span></p>

How to get below String Output from currunt String
font-style:normal">Opportunity description: {{Opportunity_description}}</span></p>
David Zhu 🔥David Zhu 🔥
You may try
s= '<font-style:normal">Opportunity description: {{Opportunity_description &nbsp; &nbsp; &nbsp; &nbsp; }}</span></p>';
s.unescapehtml4().deletewhitespace()
Rohit Thakur 19Rohit Thakur 19
Hi David,

Can you please help in the below String

Currunt String
<span>Opportunity description: {{Opportunity_d</span><span style="color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:&quot;Arial&quot;;font-style:normal">escription &nbsp; &nbsp; &nbsp; }}</span></p><p style="margin-left:15pt;font-style:normal">Opportunity stagename: {{Opportunity_stagename &nbsp; &nbsp;}}</span>

Need Output String from Currunt String
<span>Opportunity description: {{Opportunity_description}}</span></p><p style="margin-left:15pt;font-style:normal">Opportunity stagename: {{Opportunity_stagename}}</span>

Thanks
David Zhu 🔥David Zhu 🔥
There is no easy way to remove some of the html tags. like "<span style="color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:&quot;Arial&quot;;font-style:normal">"  and keep others.

If that string is a  fixed string, you may use
s=s.replace('<span style="color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:&quot;Arial&quot;;font-style:normal">,''). 

but I doubt that is what you want.