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
18
Views
1
Comments
edited Apr 29, 2020 6:44AM in Customer Portal 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!