MyBB Community Forums

Full Version: embedding iframe
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone

I'm using MyBB 1.8.15 with PHP 7.0.30

I'm using the following myCode:

Regular Expression: \[iframe\](.*?)\[/iframe\]
Replacement: <iframe src="$1"></iframe>


And I get the following in the Source Code in the forum as a result:

<iframe src="<a href="https://learningapps.org/watch?v=pqd9zi6ec17" target="_blank" rel="noopener" class="mycode_url">https://learningapps.org/watch?v=pqd9zi6ec17</a>"></iframe>

Somehow there is a additional code part <a href=" in the source tag, what make the iframe break. 
As i understand the a tag should be added later. 
So the iframe is not displayed correctly.
Does anyone have an idea?

Thx for any help.

Daniel