Made a regex for pre tag in MyCode and deactivated HTML in post.
Still the same problem.
HTML is off witch is better for security.
<h2>test</h2>
[pre class="brush: python"]
print('hello world')
print("test")
[/pre]
So maybe a post to MyBB staff and ask if there is a way to turn it off.
See that in php of v3 they have some cleaning $text = str_replace ( "\n", "", $text).
So maybe have to clean it in some way.
Still the same problem.
HTML is off witch is better for security.
<h2>test</h2>
[pre class="brush: python"]
print('hello world')
print("test")
[/pre]
[pre class="brush: python"] print('hello world') print("test") [/pre]Found this info.
Quote:Note that in MyBB, you have to be careful with style tags because linebreaks are automatically converted into <br />Not to happy about this automatic stuff :@
and so your style will have <br /> tags inside it
So maybe a post to MyBB staff and ask if there is a way to turn it off.
See that in php of v3 they have some cleaning $text = str_replace ( "\n", "", $text).
So maybe have to clean it in some way.