<p>I migrated from EE > CraftCMS. The email links in my EE WYGWAM fields were encoded as JS. When we imported to CraftCMS we lost all of those links. They now look like this:</p>

<pre><code>&lt;a&gt;joe@schmoe.com&lt;/a&gt;
</code></pre>

<p>Any ideas on how I could fix this? Perhaps I can pass my Redactor field through a filter that looks for an email pattern, and use Retcon to rewrap the link?</p>

<p>I'm looking for a solution that does not involve reimporting my data, as it's not an option at this point.</p>

CC BY-SA 4.0
2018-11-20T17:10:06.570Z
Have you find any solution?
kemsky
CC BY-SA 4.0
2018-12-22T03:17:59.143Z
@kemsky, I ended up using JS to solve the problem. I’m targeting a pattern that matches an email address and rewriting it on page load.
Vaughn D. Taylor
<redactor><emails><filtering>
Redactor has destroyed my mailto links, now what?
# Redactor has destroyed my mailto links, now what?

(Asked by: username_0 on 2018-09-18)

I migrated from EE > CraftCMS. The email links in my EE WYGWAM fields were encoded as JS. When we imported to CraftCMS we lost all of those links. They now look like this:
joe@schmoe.com

Any ideas on how I could fix this? Perhaps I can pass my Redactor field through a filter that looks for an email pattern, and use Retcon to rewrap the link?
I'm looking for a solution that does not involve reimporting my data, as it's not an option at this point.

**Tags:** redactor, emails, filtering
> **Comments:**
> **username_1**: Have you find any solution?  
> **username_0**: @kemsky, I ended up using JS to solve the problem. I’m targeting a pattern that matches an email address and rewriting it on page load.  

---

## 0 answers

