View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
17124Bug reportsImport/Exportpublic2026-10-14 20:41
ReporterDialogs Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version3.23.5 
Summary17124: Truncated SPSS export data
Description

When we export data to SPSS, answers to text questions that contain the "<" symbol are truncated just before the character in question.

Steps To Reproduce

Enter an answer to a text question including the "<" character.

Additional Information

The problem is also present when displaying the response table in the LS web interface.

TagsNo tags attached.
Attached Files
image2.png (4,173 bytes)   
image2.png (4,173 bytes)   
image1.png (2,710 bytes)   
image1.png (2,710 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)3.23.5+200923
I will donate to the project if issue is resolvedNo
BrowserNA
Database type & versionmysql
Server OS (if known)Linux
Webserver software & version (if known)
PHP Version7.3

Users monitoring this issue

Dialogs

Activities

Dialogs

Dialogs

2021-02-23 18:04

reporter   ~62474

PHP version: 7.4.15
DB: MariaDB version 15.1

c_schmitz

c_schmitz

2026-10-14 20:41

administrator   ~86468

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40865

Related Changesets

LimeSurvey: master 81f6df8d

2026-10-14 20:41

c_schmitz


Details Diff
Fixed issue 17124: Text answers containing "<" followed by a letter were cut off in the response list, the response view and the SPSS/R export
Dev Participant answers are plain text and no longer go through strip_tags()/HTMLPurifier; they are HTML escaped on display instead, answer option texts are still flattened
Dev New viewHelper::responseValueToText(), ellipsize() got an optional $bStripTags parameter
Affected Issues
17124
mod - application/controllers/ResponsesController.php Diff File
mod - application/helpers/common_helper.php Diff File
mod - application/helpers/export_helper.php Diff File
mod - application/helpers/viewHelper.php Diff File
mod - application/models/SurveyDynamic.php Diff File
add - tests/unit/helpers/ResponseValueLessThanTest.php Diff File

Issue History

Date Modified Username Field Change
2021-02-23 17:58 Dialogs New Issue
2021-02-23 17:58 Dialogs File Added: image2.png
2021-02-23 17:58 Dialogs File Added: image1.png
2021-02-23 18:03 Dialogs Issue Monitored: Dialogs
2021-02-23 18:04 Dialogs Note Added: 62474
2026-10-14 20:41 c_schmitz Changeset attached => LimeSurvey master 81f6df8d
2026-10-14 20:41 c_schmitz Note Added: 86468
2026-10-14 20:41 c_schmitz Assigned To => c_schmitz
2026-10-14 20:41 c_schmitz Status new => resolved
2026-10-14 20:41 c_schmitz Resolution open => fixed
2026-10-14 20:41 c_schmitz Bug heat 4 => 6