Author Topic: Inline Editor, Typing "<" in Editor Causes Rest of Text to Disappear (Pro)  (Read 1631 times)

MarquisMark9

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
If you enter “a<b” (no quotes or spaces) into a text field the “<b” part will disappear because the grid thinks it is the beginning of an html element I think.  This is only an issue if the character after the < is text and the value will show up when you go into edit mode.  So I think it is a rendering issue with text being interpreted as html.

You can reproduce this in their demo apps (https://paramquery.com/demos) by typing a<b in the Shipping Address field on Inline Editing/Editors & Validation.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Since < is an html entity, you would need to encode it ( replace < with &lt; and > with &gt; ) in column.render callback.

I've marked to add inbuilt support for encoding html entities as future enhancement.

Thanks