It’s a simple solution/workaround, but a Shortcode could be used.
As birgire noted, the whole anchor can be the Shortcode.
And for ease of use, this article has a solution: adding a shortcode button in TinyMCE. You could have a dropdown with a selection of anchors, turning the fight in your favor 😉 WP editor is really a PITA when it comes to this kind of characters/entities control.
And the best related Shortcode -> TinyMCE answer that I found here at WPSE.
Related Posts:
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- data-accordion removed in Visual Editor
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- WordPress tinymce prints empty P tag and break html format
- How can I control the HTML output of my post?
- unwanted and tags in text editor
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- Custom settings page TinyMce: no formatting when echoing value of editor
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Selectively remove empty line after line change
- Disable TinyMCE Table formatting width/height
- How can I make the page editor trust me?
- How can a TinyMCE modal return formatted/visual text?
- Why exactly does WordPress use p tags, not divs?
- Visual composer causing conflict with TinyMCE [closed]
- Adding a Media Button to the WordPress Content Editor
- WYSIWYG with HTML source?
- How to add “Insert/Edit link” button in custom popup tinymce window?
- How to disable TinyMCE from removing span tags
- WordPress automatically adding ” “?
- WordPress Visual Editor Stripping HTML Changes
- How to get the input of a TinyMCE editor when using on the front-end?
- Enqueue Script After TinyMCE initialized
- Unable to add “code” button to TinyMCE toolbar
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Is it possible to re-use the image details popup?
- Visual Tab Missing From Editor
- How to use the new Dashicons for custom TinyMCE buttons?
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- How to disable TinyMCE 4 keyboard shortcuts
- Tiny MCE not adding p tag when saving theme option
- How to add TinyMCE keyboard shortcut
- WordPress MultiSite Paste from Word Tool Does not work
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- Remove quicktag buttons but not Visual / Text editor and tabs
- TinyMCE removes iframe attributes width and height
- Append Font Family in TinyMCE
- Disabling TinyMCE keyboard shortcuts altogether
- TinyMCE strips line breaks on mceAddControl
- tinyMCE duplicates previous block element when pressing return (visual editor)
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- Enable Visual Editor In Comments On CPT Edit Page
- Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?
- TinyMCE Editor removing and and putting instead
- Add TinyMCE editor to windowManager textbox
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- TinyMCE – Add button that changes direction of selected text
- Limit Block format tags in WordPress wp_editor
- How to reset ‘Advance’ tab on table property?
- Add a TinyMCE Core Plugin Using tiny_mce_before_init
- Add drop down in wordpress tiny mce editor pop up
- Fontawesome icon vanishes in editor while switching text and visual mode
- TinyMCE Advanced list type drop-down
- editor text cut off when using 2 spaces (after periods)
- Advanced tinyMCE insert link error [closed]
- Is it possible to disable the image alignment options in the post editor?
- Keyup events in tinymce editor not working
- Tiny MCE doesn’t look anything like my blog
- Save WYSIWYG editor plugin settings, only works after second save
- Removing tags around tags
- TinyMCE – no auto formatting using the_editor()?
- How to force insertion in editor
- TinyMCE not loading in IE8
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Visual Editor is blank – 404 for plugin js
- Getting shortcode attribute values and shortcode content with JavaScript regex
- Allowing style tag in TinyMCE editor
- remove WYSIWYG editor but keep media button
- Best Browser for Editing Posts
- WordPress Tiny MCE won’t accept line breaks
- wp_tiny_mce function not found
- TinyMCE strips off the href tag inside span, if i change from text to visual
- clasic editor – article categories customization?
- Replace text by icon in TinyMCE toolbar
- TinyMCE Advanced Link Class List on the main editor
- TinyMCE function causes issue in AVADA theme
- Changing code with ( ) when author updates their post (TinyMCE)
- WordPress Editor without buttons
- How do I externalize JQuery from my Tinymce Modal Dialog’s html and Enqueue the JS File to see JQuery
- Adding microdata using Structured Data Markup Helper HTML
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- `tinyMCE is not defined` after migrating site to server
- WordPress adding extra html coding to my data on saving
- Tinymce doesnt appear
- mce_external_languages: how does it really work?
- tinymce modal and I18n strings methods
- Edit body image after insertion in 3.9.1
- WordPress WYSIWYG editor on demand, responsive
- Adding New Row of Custom TinyMCE
- Multiple TinyMCEs breaking Distraction Free Writing
- prevent caching during tinymce custom button development
- WordPress removes paragraphs. How to disable this behavior?
- WPAlchemy – Multiple TinyMCE editor blank (can’t add text)
- Add custom classes to TinyMCE generated markup
- wp_insert_post() dont post content like i need it :(
- How to create custom toggle button in tinymce?