Automatically link to entries in rich text field Has anyone implemented auto linking of words within a redactor field? For example, a rich text field would contain this:


  ​A small boat surrounds a large ​island​​


In a channel there are entries titled boat and island. I would like to automatically link to these without the editor having to manually link them. 

Not sure how approach this so any hints to get me on my way are most appreciated.
How about just using the replace filter?

{% set text = "A small boat surrounds a large ​island​​" %}

{% set linkedText = text|replace({'boat':'&lt;a href="/whatever"&gt;boat&lt;/a&gt;'}) %}

{{ linkedText|raw }}&lt;br&gt;&lt;br&gt;


That works.  

In theory there should be a way to do it with parseRefs too, but my initial test isn't working yet:

{% set refText = text|replace({'boat':'&lt;a href="{entry:11102:}"&gt;boat&lt;/a&gt;'}) %}

{% set parsedText = refText|parseRefs %}

{{ parsedText|raw }}


...which leaves an unparsed ref tag so far.  I'm just heading out of the office but maybe a simple replace as above is enough to get you started?