Removing anchor tag from shortcode input?
-
I’m working on a simple plugin (my first) that converts a given shortcode with a URL as the input parameter into an iframe src. For example
[Frame mylink="https://google.com"]
This works perfectly, except…If the user is working in TinyMCE’s ‘Visual’ mode and copy/pastes the URL from an email into the editor, it often comes along with the
<a>
tag and turns into a clickable anchor rather than plain text. This breaks the shortcode. I can’t even seem to get the parameter to pass through to my function at all if it’s been wrapped with HTML.Is there a way around this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removing anchor tag from shortcode input?’ is closed to new replies.