How to render an entry type of a Matrix in HTML? &lt;a href="{{box.learnMoreLink}}"&gt; {{ box.learnMoreText }} &lt;/a&gt; 


Currently I have a Matrix field that has two plain-text fields. I want to change the href ({{box.learnMoreLink}}) from plain-text to an entry. I am trying to figure out how to render the entry field. Just changing the field type in the CMS is resulting in content loss. Anyone know the best way to go about this?
If you change the entry type then you're going to lose content for sure.

If changing that field type to an entry is really what you want, great. You could do something like

{# grab the first entry that we've selected #}
{% set learnMoreLink = box.learnMoreLink.first() %}
{# spit out the url for the first entry #}
&lt;a href="{{ learnMoreLink.url }}"&gt;{{ box.learnMoreText }}&lt;/a&gt;