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 

Stuck in the below String. How to remove HTML tags between {{ & }} space CSS etc

Hi,
Stuck in the below String How to remove HTML tags between {{ & }} space CSS etc

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>
ShirishaShirisha (Salesforce Developers) 

Hi Rohit,

Greetings!

Can you please try by replacing the tags by the space as mentioned in this document (http://salesforce.stackexchange.com/questions/169773/apex-regex-to-remove-the-special-character/169774#:~:text=replaceAll('%5C%5CD',digit%20from%20the%20phone%20number.&text=String%20str%20%3D%20'(667),'%2C%20'')%3B%20System.):

Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.

Warm Regards,
Shirisha Pathuri