aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/html_tune.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-02-20 22:30:24 -0500
committerRalph Amissah <ralph@amissah.com>2013-02-20 22:30:24 -0500
commit1c33d8106063e96da4750098efce9b8d9f87cc02 (patch)
tree76f2006cb0385bef8a796e64b25cfaac3e2d6425 /lib/sisu/v3/html_tune.rb
parentdebian/changelog (4.0.7-1) (diff)
parentv4 (v3): version & changelog, dates touched (diff)
Merge tag 'sisu_4.0.8' into debian/sid
SiSU 4.0.8
Diffstat (limited to 'lib/sisu/v3/html_tune.rb')
-rw-r--r--lib/sisu/v3/html_tune.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sisu/v3/html_tune.rb b/lib/sisu/v3/html_tune.rb
index 32426076..23fa586e 100644
--- a/lib/sisu/v3/html_tune.rb
+++ b/lib/sisu/v3/html_tune.rb
@@ -144,7 +144,7 @@ module SiSU_HTML_Tune
data_tuned=[]
#@tuned_file=[]
data.each do |dob|
- dob=angle_brackets(dob)
+ dob=amp_angle_brackets(dob)
dob=endnotes_html(dob)
dob=url_markup(dob)
dob=markup(dob)
@@ -241,8 +241,11 @@ module SiSU_HTML_Tune
end
dob
end
- def angle_brackets(dob)
- dob.obj=dob.obj.gsub(/<([a-z:\/]+)>/,"#{Dx[:lt_xml]}\\1#{Dx[:gt_xml]}")
+ def amp_angle_brackets(dob)
+ dob.obj=dob.obj.
+ gsub(/&/u,'&amp;').
+ gsub(/<([a-z:\/]+)>/,"#{Dx[:lt_xml]}\\1#{Dx[:gt_xml]}").
+ gsub(/</u,'&lt;').gsub(/>/u,'&gt;')
dob
end
def endnotes_html(dob)