Remove HTML tags from contact Email address using rn:field
Summary
Display contact email address as a Plain TextContent
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
20aCode Snippet
<rn:field name="Contact.Emails.PRIMARY.Address" />
Tagged:
1