fix bbcode bracket workaround
parent
54c3ac4aba
commit
ddd84a97ad
|
@ -327,7 +327,7 @@ class Formatter
|
|||
|
||||
def bbcode_formatter(html)
|
||||
begin
|
||||
html.gsub!(/\[(?=\W)/, "\uf666")
|
||||
html.gsub!(/\[(?=[^\w\/])/, "\uf666")
|
||||
html = html.bbcode_to_html(false, BBCODE_TAGS, :enable, *BBCODE_TAGS.keys)
|
||||
html.gsub!("\uf666", '[')
|
||||
rescue Exception => e
|
||||
|
|
Loading…
Reference in New Issue