workaround bbcode parser voring brackets
parent
45408c3c01
commit
441bead7ba
|
@ -325,7 +325,9 @@ class Formatter
|
||||||
|
|
||||||
def bbcode_formatter(html)
|
def bbcode_formatter(html)
|
||||||
begin
|
begin
|
||||||
|
html.gsub!(/\[(?=\W)/, "\uf666")
|
||||||
html = html.bbcode_to_html(false, BBCODE_TAGS, :enable, *BBCODE_TAGS.keys)
|
html = html.bbcode_to_html(false, BBCODE_TAGS, :enable, *BBCODE_TAGS.keys)
|
||||||
|
html.gsub!("\uf666", '[')
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
end
|
end
|
||||||
html
|
html
|
||||||
|
|
Loading…
Reference in New Issue