We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If using the textarea field type and json dataformat, newlines are parsed differently depending on if play or update command is used.
Template definition:
window.SPXGCTemplateDefinition = { "description": "Textarea test", "playserver": "OVERLAY", "playchannel": "1", "playlayer": "10", "webplayout": "10", "steps" : "1", "out": "manual", "uicolor": "2", "dataformat": "json", "DataFields": [ { "field": "f0", "ftype": "textarea", "title": "Content", "value": "", }, ], };
Example input:
Value of f0 when using play: Test test test<br>Second line test
Test test test<br>Second line test
Value of f0 when using update: Test test test\nSecond line test
Test test test\nSecond line test
So on play(), the newline is converted to an escaped <br> tag, which seems to be happening here: https://github.com/TuomoKu/SPX-GC/blob/master/routes/routes-application.js#L1359-L1372
<br>
But for some reason, the same is not done on update(). This makes it hard to code template logic that detects newlines.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If using the textarea field type and json dataformat, newlines are parsed differently depending on if play or update command is used.
Template definition:
Example input:
Value of f0 when using play:
Test test test<br>Second line test
Value of f0 when using update:
Test test test\nSecond line test
So on play(), the newline is converted to an escaped
<br>
tag, which seems to be happening here: https://github.com/TuomoKu/SPX-GC/blob/master/routes/routes-application.js#L1359-L1372But for some reason, the same is not done on update(). This makes it hard to code template logic that detects newlines.
The text was updated successfully, but these errors were encountered: