Method: Axlsx::Cell#clean_value
- Defined in:
- lib/axlsx/workbook/worksheet/cell.rb
#clean_value ⇒ Object
Returns the sanatized value TODO find a better way to do this as it accounts for 30% of processing time in benchmarking...
394 395 396 397 398 399 400 |
# File 'lib/axlsx/workbook/worksheet/cell.rb', line 394 def clean_value if (type == :string || type == :text) && !Axlsx::trust_input Axlsx::sanitize(::CGI.escapeHTML(@value.to_s)) else @value.to_s end end |