From 81988e386d36894b2389afb94e3bfcb8c5ffaa5a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 10 Oct 2019 21:02:15 -0500 Subject: stopped using private-use codepoints as formatting placeholders (resolves #9) --- app/lib/formatter.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/lib/formatter.rb') diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index b405a4e08..e21ff07d0 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -257,7 +257,7 @@ class Formatter end def format_screenreader(html) - html.gsub(/\uf333(.*)\uf334/m, '') + html.gsub(/\ufdd3(.*)\ufdd4/m, '') end def format_console(html) @@ -372,9 +372,9 @@ class Formatter def bbcode_formatter(html) begin - html.gsub!(/\[(?=[^\w\/])/, "\uf666") + html.gsub!(/\[(?=[^\w\/])/, "\ufdd6") html = html.bbcode_to_html(false, BBCODE_TAGS, :enable, *BBCODE_TAGS.keys) - html.gsub!("\uf666", '[') + html.gsub!("\ufdd6", '[') rescue Exception => e end html -- cgit