jQWidgets Forums
jQuery UI Widgets › Forums › Grid › V14. Error with special characters in grid
This topic contains 9 replies, has 3 voices, and was last updated by svetoslav_borislavov 2 years, 8 months ago.
-
Author
-
I am testing the new version 14.0 and I notice that when the text of a grid cell contains special characters, for example: < the grid renders it without converting it to the ‘<‘ symbol, however when you change the sort order of the table by clicking on the column header, then it corrects it and renders the text correctly.
Is this a bug? Or am I missing something.Greetings.
Hi,
Do you mean that the grid is not replacing the special characters with their HTML entities?
What do you mean by rendering the text correctly?
I am looking forward to helping you!Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Do you mean that the grid is not replacing the special characters with their HTML entities?
Yes, when I see the grid the special characters aren’t replaced.
In V4 it’s Ok but with new V14 isn’t, you must to change the order with column header and then the content is refresh and go ok, but the first time when the grid is created not replace the special characters.Thank you
Hi,
The grid is escaping the special characters correctly.
Have a look at this demo: http://jsfiddle.net/5uxLq13y/
Click the button and see that the innerHTML contains the relevant HTML entities.If you need further assistance, let us know!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Hi,
I have the same problem.
We have a database in which types predefined by the database are enclosed in <>.The demo gives for ‘<>’ the correct ‘<>’
And also correct if I set data to ‘<_>’: ‘<_>’ or ‘<123>’: ‘<123>’.But <Person> gives ‘<Person></Person>’ instead of ‘<Person>’ and so the field is displayed empty.
Regards
The above doesn’t look correct now because the esacaped tags were interpreted.
So I try as code:The demo gives for ‘<>’ the correct ‘<>’ And also correct if I set data to ‘<_>’: ‘<_>’ or ‘<123>’: ‘<123>’. But <Person> gives ‘<Person></Person>’ instead of ‘<Person>’ and so the field is displayed empty.
With code the escaped tags are also interpreted so I hope you know what I mean.
Hi,
<Person> is a tag. To visualize it the data should be escaped.
Here is a demo, have a look at it: http://jsfiddle.net/zejf80cs/Should you have some questions, do not hesitate to contact us!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Hi, I look at this demo: http://jsfiddle.net/5uxLq13y/ and change in data the value of ‘Sofia’ with ‘So& # 039;fia’ and I can see that don’t change the special character, it’s show So& # 039;fia in grid and must show So’fia.
Best regard.
Hi,
Yes it displays So& # 039;fia. You should enter So’fia.
Try with these <>. If you enter them they will be escaped, but if you enter <> it will display <>.Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.