Is possible to remove hyperlink from string?
Use Case Description
Hello Guys,
I have one string that I get from website and I need to send this string by email.
But in string I have some hyperlink is possible to remove the hyperlink in this string?
Kind Regards,
David
AS-IS WORKFLOW, TO-BE WORKFLOW
-
Other information about the use case
Industry categories for this use case: Customer Service
Skill level required: Intermediate
UiPath Products that were used: UiPath Studio
Other applications that were used: -
Other resources: -
What is the top ROI driver for this use case?: Other
Hi @SANTOS_David ,
Could you give us an Example of the string value that you receive ?
Hi @SANTOS_David ,
Please try this css in html body, can disable hyperlink in the text
.disabled-link{
cursor: default;
pointer-events: none;
text-decoration: none;
}
also you can do one thing paste the text first in notepad and then pick it up to send email.
Hope it wll help.
Thanks,
Ashish Soni
Hello Ashish,
After doing the 2 tests is still the same.
The weird is that the link is only on some part of the string.
Full string:
“smtp; 552-5.2.2 The email account that you tried to reach is over quota and inactive. 552-5.2.2 Please direct the recipient to 552 5.2.2 .ht.tps://support.google.com/mail/?p=OverQuotaPerm o15-20020a5d670f000000b002daefdd5445si2844340wru.889 - gsmtp”
Part that appears has link:
“htt.ps://support.google.com/mail/?p=OverQuotaPerm”
Hi @SANTOS_David ,
Could you maybe try using the <div> tag and check whether it works ?
"<div>
smtp; 552-5.2.2 The email account that you tried to reach is over quota and inactive. 552-5.2.2 Please direct the recipient to 552 5.2.2 .https://support.google.com/mail/?p=OverQuotaPerm o15-20020a5d670f000000b002daefdd5445si2844340wru.889 - gsmtp<br>
</div>"
Do note that you would require to keep the IsBodyHtml
Property enabled.