Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
Remove HTML tags from contact Email address using rn:field — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Remove HTML tags from contact Email address using rn:field

Accepted answer
38
Views
1
Comments
edited Jun 7, 2022 1:20PM in General Technical Discussions 1 comment

Summary

Display contact email address as a Plain Text

Content

When we use the rn:field to display the email address it prints as an HTML text, Is it possible to print as plain text. 

Tag:  <rn:field name="Contact.Emails.PRIMARY.Address" />

Actual Output: <a href="mailto:[email protected]" id="yui_234">[email protected] </a>

Expected output: [email protected],

we can use strip_tags() PHP function to acheive this, but there is no option to store rn:field into a php variable.

 

 

 

 

 

Version

20a

Code Snippet

<rn:field name="Contact.Emails.PRIMARY.Address" />

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!