{"action":"opened","issue":{"url":"https://api.github.com/repos/contao/core/issues/8309","repository_url":"https://api.github.com/repos/contao/core","labels_url":"https://api.github.com/repos/contao/core/issues/8309/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/8309/comments","events_url":"https://api.github.com/repos/contao/core/issues/8309/events","html_url":"https://github.com/contao/core/issues/8309","id":149167846,"number":8309,"title":"{{email_close}} insert tag missing?","user":{"login":"fritzmg","id":4970961,"avatar_url":"https://avatars.githubusercontent.com/u/4970961?v=3","gravatar_id":"","url":"https://api.github.com/users/fritzmg","html_url":"https://github.com/fritzmg","followers_url":"https://api.github.com/users/fritzmg/followers","following_url":"https://api.github.com/users/fritzmg/following{/other_user}","gists_url":"https://api.github.com/users/fritzmg/gists{/gist_id}","starred_url":"https://api.github.com/users/fritzmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fritzmg/subscriptions","organizations_url":"https://api.github.com/users/fritzmg/orgs","repos_url":"https://api.github.com/users/fritzmg/repos","events_url":"https://api.github.com/users/fritzmg/events{/privacy}","received_events_url":"https://api.github.com/users/fritzmg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T14:30:56Z","updated_at":"2016-04-18T14:30:56Z","closed_at":null,"body":"There is a `{{email_open::*}}` insert tag with which you can create obfuscated email links with a custom link text, e.g.\r\n```html\r\n{{email_open::email@example.org}}<img src=\"http://placehold.it/350x150\" alt=\"\"></a>\r\n```\r\nDoing it this way will not work in the TinyMCE editor for example. TinyMCE will remove the `</a>` since it's a stray tag at this point. In the frontend this will in turn create invalid HTML, because now the `</a>` is missing of course.\r\n\r\nTo prevent this, you can use `{{link_close}}` instead:\r\n```html\r\n{{email_open::email@example.org}}<img src=\"http://placehold.it/350x150\" alt=\"\">{{link_close}}\r\n```\r\n\r\nFor non-developer editors this might be a bit confusing though, since they might not know why they must use the `{{link_close}}` tag in conjunction with `{{email_open::*}}` and wonder why there isn't simply a `{{email_close}}` tag."}}