Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

url with html tags

Ajeet
Contributor III

I have created a calculated field in which i am displaying an URL using other helper fields and merging it like a complete URL. I would like to display the URL with html tags similar like <script>"URL"</script> in the calculated text field.

Current calculation: "https://test.team.com/"&[FilePath]&"/testit/"&[Tracking ID]&".js" which is working fine and I would need to update the calculation in such a way so that I would have output like this:

Desired output: <script src="https://test.team.com/test_path/testit/123456.js"></script>

@Anonymous @Ilya.Khen @Ilya_Khen @JeffLetterman 

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you @DavidPetty , @Anonymous  Using encoding characters it is working now. 

"&lt;script src=&quot;https://test.team.com/test_path//testit/123456.js&quot;&gt;&lt;/script&gt;"

View solution in original post

8 REPLIES 8

Anonymous
Not applicable

@Ajeet,

Cannot you use &gt; and &lt; codes for <>, then you should be able to construct needed text.

Can you elaborate it more?

Anonymous
Not applicable

I mean, what problems you have in constructing the needed output text? I assume only tags like <> are the issue?

Yes, i want to incorporate the HTML tags <> so that output would be produced like the below.

<script src="url"> </script> 

Anonymous
Not applicable

So < stands for &lt;

> stands for &gt;

DavidPetty
Archer Employee
Archer Employee

@Ajeet, calculated fields will most likely filter out the script tag for security reasons.  So, you won't be able to achieve what you're looking to do.  You'd have to use a custom object instead.

 Advisory Consultant

Thank you @DavidPetty , @Anonymous  Using encoding characters it is working now. 

"&lt;script src=&quot;https://test.team.com/test_path//testit/123456.js&quot;&gt;&lt;/script&gt;"

Anonymous
Not applicable

Anytime