effective_qb_online 0.9.10 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/effective/qb_sales_receipt.rb +5 -4
- data/lib/effective_qb_online/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78e60bd08d0c81f3aee5084c32b6276cb0c01f4e5ca7fee043451003f84e0745
|
|
4
|
+
data.tar.gz: e6e5d58197ffb083cf351f0cd4931729769a716f47d5751fbfa0a4c02134adcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d58050f4a1c942479d9b6ab5494de290e9e3111d0c7b46837aa321b53dbc61c032000bfef27cc32ac917e7618acfaaef18d23433a22cb4611c5a9d27817bb6d
|
|
7
|
+
data.tar.gz: 3685f8ac6b49b091dcbfd000e8aebcf8191ee7883cae82095b69013db939f5b3de2380d7aabc3c5cf5757207590c4cadfb2f224e1a112ba04f5fad2c7ac86587
|
|
@@ -165,13 +165,14 @@ module Effective
|
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
# Order item names may contain HTML (e.g. an EventRegistrant's "Member" badge).
|
|
168
|
-
# QuickBooks line item descriptions are plain text, so strip the markup while keeping
|
|
169
|
-
#
|
|
168
|
+
# QuickBooks line item descriptions are plain text, so strip the markup while keeping the badge text.
|
|
169
|
+
# <br> and carry spacing, so they become spaces rather than being dropped or passed through.
|
|
170
|
+
# The sanitizer re-encodes as it strips, so unescape after or a title with an & syncs as &
|
|
170
171
|
def self.strip_html(value)
|
|
171
172
|
return value if value.blank?
|
|
172
173
|
|
|
173
|
-
text = value.to_s.gsub(/<br\s*\/?>/i, ' ')
|
|
174
|
-
|
|
174
|
+
text = ActionView::Base.full_sanitizer.sanitize(value.to_s.gsub(/<br\s*\/?>/i, ' '))
|
|
175
|
+
CGI.unescapeHTML(text.gsub(' ', ' ')).squish
|
|
175
176
|
end
|
|
176
177
|
|
|
177
178
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_qb_online
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|