Answers.Body: <p>How about:</p>
  
  <pre><code>{$form.source_contact_id.html|strip_tags:"&lt;a&gt;"}
  </code></pre>
  
  <p>You'll have to add some conditional statements so the smarty only runs when your are viewing the Activity, if you don't the Contact Reference field in edit/create mode <strong>will break</strong>. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-12T10:16:11.273Z
Answers.Text: Brilliant Andrei, thank you! Didn't realize Smarty can strip tags selectively. AS for conditional statement(s): there are a plenty of **$actions eq 1/2/3/4..** inside templates, so it looks easy and logical, apart from the fact I can't find a full list of $actions, so, for example, 4 in $actions stands for VIEW, but    8 stands for VIEW too; there are also mysterious ** $action eq 16384 ** where 16384 is ..? Worrying if you, by any chance, could shed some light on? Thanks anyway for genius Smarty hint!
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-12T10:37:15.617Z
Answers.Text: **1 = Add, 2 = Edit, 4 = View, 8 = Delete** having a look at `/CRM/Core/Action.php` on line 46: https://github.com/civicrm/civicrm-core/blob/1e7702fee94c891c1c1b3ec4d43688991f96b6af/CRM/Core/Action.php#L46 you can see, among the rest of the actions, that 16384 **stands for Copy**
Answers.UserDisplayName: Andrei
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-11T20:05:07.340Z
Answers.LastActivityDate: 2016-04-11T20:05:07.340Z
Answers.UserDisplayName: Andrei
Body: <p>How should  <code>{$form.source_contact_id.html}</code> from \civicrm\templates\CRM\Activity\Form\Activity.tpl be altered so only text remains/ without an URL? <a href="http://www.smarty.net/docsv2/en/language.modifier.escape.tpl" rel="nofollow">smarty escape</a> doesn't seems to be a good idea, neither crmReplace (which can replace link attributes like class or href, but doesn't seems to be able to remove link entirely). Any advice, please! </p>
  
Tags: <smarty><templates><custom-templates>
Title: Remove link(s) from an Activity View screen via crmReplace
ThreadText: # Remove link(s) from an Activity View screen via crmReplace
  
  (Asked by: username_0 on 2016-04-10)
  
  How should `{$form.source_contact_id.html}` from \civicrm\templates\CRM\Activity\Form\Activity.tpl be altered so only text remains/ without an URL? [smarty escape](http://www.smarty.net/docsv2/en/language.modifier.escape.tpl) doesn't seems to be a good idea, neither crmReplace (which can replace link attributes like class or href, but doesn't seems to be able to remove link entirely). Any advice, please!
  
  **Tags:** smarty, templates, custom-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-11. Score: 0 | Accepted answer
  
  How about:
  {$form.source_contact_id.html|strip_tags:""}
  
  You'll have to add some conditional statements so the smarty only runs when your are viewing the Activity, if you don't the Contact Reference field in edit/create mode will break.
  
  > **Comments:**
  > **username_0**: Brilliant username_1, thank you! Didn't realize Smarty can strip tags selectively. AS for conditional statement(s): there are a plenty of **$actions eq 1/2/3/4..** inside templates, so it looks easy and logical, apart from the fact I can't find a full list of $actions, so, for example, 4 in $actions stands for VIEW, but    8 stands for VIEW too; there are also mysterious ** $action eq 16384 ** where 16384 is ..? Worrying if you, by any chance, could shed some light on? Thanks anyway for genius Smarty hint!  
  > **username_1**: **1 = Add, 2 = Edit, 4 = View, 8 = Delete** having a look at `/CRM/Core/Action.php` on line 46: https://github.com/civicrm/civicrm-core/blob/1e7702fee94c891c1c1b3ec4d43688991f96b6af/CRM/Core/Action.php#L46 you can see, among the rest of the actions, that 16384 **stands for Copy**  
  
  ---
  
  