Remove mybb video tags
mybb embedds videos like this: [video=provider]http://link-to-video.com[/video] Let's remove these video tags as discourse does this automatically.
This commit is contained in:
parent
f25f8de972
commit
54d450156f
|
@ -150,6 +150,9 @@ class ImportScripts::MyBB < ImportScripts::Base
|
|||
# [quote="cybereality":b0wtlzex]Some text.[/quote:b0wtlzex]
|
||||
s.gsub!(/:(?:\w{8})\]/, ']')
|
||||
|
||||
# Remove mybb video tags.
|
||||
s.gsub!(/(^\[video=.*?\])|(\[\/video\]$)/, '')
|
||||
|
||||
s = CGI.unescapeHTML(s)
|
||||
|
||||
# phpBB shortens link text like this, which breaks our markdown processing:
|
||||
|
|
Loading…
Reference in New Issue